Any form can be rendered as read-only by appending the form URL with the parameter _readonly=true. In read-only mode, all controls are disabled from entry including dropdowns, repeats and upload controls. The default value is false. Here is an example of the Raw Form Link with the &_readonly parameter appended.
Code Block |
---|
http://localhost:8082/frevvo/web/tn/rap.com/user/Jack/app/_nYcM4Y75EeG7rbJC5D8oyQ/formtype/_pZqaoITGEeKOuqvcfSYuCg?_method=post&embed=true&_readonly=true |
The form that displays will not allow data input in any of the controls. Notice that clicking on the Dropdown dropdown arrow does not display choices.
...
Normally, rules in your form are not executed in read-only mode. There is one exception: form.load rules will still execute as expected. Any rules that get triggered due to form.load output will also be executed. For instance, you can have a rule executed on form load that will select Tab1 a tab named Review, of a tab control based on input from a name field. The rule below results in the Review Tab being selected if the name is Jack Smith:
Code Block |
---|
if (form.load) { name.value = 'Jack Smith'; Tab1Review.selected = true; } |
Notice the The Review Tab is selected because the rule executes .
...
Appending the _readonly=true parameter to your forms Raw Link, will display the form but not allow input. Rules using the identifier form.load and any other rules that get triggered will be executed in Read Only mode. The result is shown in the image: