setFieldValue
app function to set a value to a field
Parameters
Example Usages
app.setFieldValue("myControlId", "Hello World!");let myText = "Hello World!";
app.setFieldValue("myControlId", myText);app.setFieldValue("myDateControl", "2019-01-31"); //This is the format, you would get by getFieldValue
app.setFieldValue("myDateControl", new Date()); //This will set todays date.
app.setFieldValue("myDateControl", new moment().add(1, "month")); // you can use moment to set calculated dates. See https://momentjs.com/ for more details and examplesapp.setFieldValue("myCalendarControl", "2019-01-31");Demo
Return Values
Last updated