Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Displaying a warning message in a rule

Updated on January 14, 2022

You can display a warning message in a rule based on criteria that you define. By calling attention to configurations that do not follow best practices at design time, you can help users improve their compliance score before they take their application to production.

  1. Open a warning message that matches your use case by doing one of the following:

  2. On the Message form, take note of the message definition and the type of input parameters that the message supports, because you need this information when you call the message from another rule.

  3. Find and open the rule that detects the warning conditions, by searching for the rule or using the Application Explorer.

  4. Update the rule to call the standard pxAddGuardrailMessage function.

    The syntax for calling a function can vary, based on the type of rule that you are updating.

  5. Pass a parameters to the function, by using a tab-delimited string that begins with your message name and ends with values for input parameters.

    For examples of correctly formatted strings, see Messages.

  6. Click Save.

At run time, your application displays warning messages in the header of a rule form. Users can choose to follow the guidance in the message to resolve the warning, provide an explanation that justifies the warning, or ignore the warning.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us