setFieldValue
app function to set a value to a field
Parameters
controlId => Id of the control
value => The value, you want to set. This could be a number, a date, a string (depending on the control type of course). setFieldValue will do all the conversions for you.
Example Usages
1. Simple textbox
2. With a variable
3. Setting a date
4. Setting a date to a calendar control scrolls to that date.
5. The Calendar supports subcontrols to set. You can add resource(s) to the calendar for example:
Demo
Return Values
The function handles various types of controls and returns the updated field value after performing the necessary operations. If the control doesn't exist, it returns null. See demo.
Last updated
Was this helpful?