Summary

This is a standard format example of a basic alert script. 


Standard Format Templates


Example 1

It starts and ends with the “script” tag. Within the script is the “body” tag. Within the “body” is the alert command, which is made up of the expression, correction, and text. Also, there is the target which is needed by the script to know the exact location of where this alert will fire. The dependent path is commonly used in cross -form checks and contains the path to the dependent question (the question that does not host the alert). It is needed in order for the script to re-evaluate if that dependent question is modified.

Script

<script scriptId="example">
    <body>
        <s:alert>
            <s:expression>
                <!-- This is where the criteria that must evaluate to true would be 
                entered -->
                </s:expression>
                <s:correction>
                    <s:string value="optional"/>
                </s:correction>
                <s:text>
                    <s:string value="Insert Alert Text Here."/>
                </s:text>
          </s:alert>
    </body>
    <target typeId="test"/>
    <dependent path="Path of the dependent question"/>
  </script>



Need more help?

Please visit the Fountayn Contact Information page.