FormResponse (required)

This controls the response the user will see after the Submit button is clicked. For each response you would like to create, specify each within its own <Response> tags. The default response must come last.

XML Reference

<Response alert="true/false" sendemail="true/false">

<ResponseText/>

<Message/>

<RedirectUrl/>

</Response>

Alert

This indicates if a pop up alert message box will be displayed after a save is completed.

Values: true/false

SendEmail

This indicates if an Email will be generated after save. You must setup the Emailer Properties in order to use this function.

Values: true/false

ResponseText

This is the text that will be searched for within the response from the data provider after save. For instance, if you want check for an error, you would enter the text "error". If you want to have this as the default response, keep this node empty.

Message

This is the message displayed to the user in the pop-up window. You can use the use the ID returned by the Data Provider by using the "%RecordID%" variable within your message. If you use the variable, you must setup the Xpath for new record ID property. %Self% to redirect the form to itself or %Referrer%

RedirectUrl

This is the URL that the user will be redirected to after a save is complete and a message is displayed.  This is deactivated if you use the ShowResponse parameter in the URL. You can use the %Self% variable to redirect to itself or %Referrer% to redirect to the referring page. If "Source=URL" has been specified in the page URL, then the user will be redirected to the URL specified in the Source parameter. If not specified, then no redirection will occur.

FormResponse Example

<FormResponses>

<Response alert="true" sendemail="true">

<ResponseText>ID</ResponseText>

<Message>Complete %RecordID%</Message>

<RedirectUrl>%Self%</RedirectUrl>

</Response>

<Response>

<ResponseText>Error</ResponseText>

<Message>Project Not Saved</Message>

<RedirectUrl/>

</Response>

<Response alert="false" sendemail="false">

<ResponseText>NewDataSet</ResponseText>

<Message/>

<RedirectUrl>%Referrer%</RedirectUrl>

</Response>

</FormResponses>

 

Back to Top