Can I set field values from scripts?

Last updated Nov 05 2018

Yes - you can.
If you are looking to add scrips that will set values in your form fields you can do so by inserting the script to an HTML element.

Following is an example:
In this example we will show you how to set the value 'Hello' in the Textbox field.
- Create a new form
- Drag a Textbox
- Drag an HTML element
- Find out what the ID of the Textbox is:
Select the HTML element on canvas and go to 'Properties' panel > 'Element' tab > 'Settings' option
(The ID is located on the Settings tab).
- Copy this code into the HTML element:
 <script>
window.parent.ftSetValueByID("fld3", "Hello");
</script>
- Press on 'Apply code' button
- Save the form
- Now test your form:
Publish it as URL and you will see that the Textbox has the text 'Hello' in it.



Enjoy!


CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.