Is there any documentation on the Modern Designer JavaScript External URL usage yet?
Question
Question
Answer
For example, in the external JS file, you have a function as following:
function changeValue(value){ LFForm.setFieldValues({fieldId: 1}, value); }
In the inline JavaScript, you have following code:
changeValue("new")
Then when you load the form, the value of the field which ID is 1 will be changed to new.
Replies
Sorry we haven't added documentation for that part yet.
You can put the URL of an external js file in it, then the JavaScript in that external js file will run when load the form.
For example, you can put some common used functions in the external js file, then can the function in the Inline JavaScript.
Please refer to the online help page here: https://doc.laserfiche.com/laserfiche.documentation/11/administration/en-us/Default.htm#../Subsystems/Forms/Content/Javascript-and-CSS/JavaScript-in-the-Forms-Designer.htm
Sorry, I meant do you have any examples on how to call the External JavaScript
For example, in the external JS file, you have a function as following:
function changeValue(value){ LFForm.setFieldValues({fieldId: 1}, value); }
In the inline JavaScript, you have following code:
changeValue("new")
Then when you load the form, the value of the field which ID is 1 will be changed to new.