Summary

This script fires an alert on any of the target questions that are left blank when the form is saved. This alert is required and cannot be overridden. This script has the same behavior as the check if blank standard edit check (this != “”),  with ‘Correction Required’ set to ‘required’. 


Script

<script scriptId="required-set">
    <body>
        <s:alert>
            <s:expression>
                <s:isSet/>
            </s:expression>
            <s:correction>
                <s:string value="required"/>
            </s:correction>
            <s:text>
                <s:string value="This question must be corrected before continuing."/>
            </s:text>
        </s:alert>
    </body>
    <target typeId="questions" when="preprocess" shouldReconcile='true' />
    <target typeId="go" when="preprocess" shouldReconcile='true' />
    <target typeId="here" when="preprocess" shouldReconcile='true' />
</script>



Need more help?

Please visit the Fountayn Contact Information page.