LinkedIn
Copied!

Table of Contents

Prompting users for parameter values

Version:

Only available versions of this content are shown in the dropdown

You can prompt users for values when they run a rule that has input parameters. By displaying a list of options instead of a blank text box, you can help users provide information quickly and accurately.

Some rules do not support parameters or support only a subset of the options below. Names of fields may vary, based on the type of rule that you are updating.
  1. Define the input parameters for your rule.

  2. In the header of the rule form, click Actions > View references to display a list of rules that call your rule.

  3. Inspect the list to ensure that your rule runs in response to an action that a user performs, such as a flow action, because parameter prompting does not occur when a rule runs programmatically.

  4. Click the Parameters tab.

  5. In the SmartPrompt type field, enter the first key part, which is typically the class, of the input parameter.

    For example, you can enter Rule-Message to display a list of messages that are available in the run-time class path.

  6. To refine the options in the list, enter the second key part of the input parameter in the Validate as field.

    For example, you can enter pyCaption when the SmartPrompt type field is set to Rule-Obj-FieldValue to display only field values with a field name that contains "pyCaption".

    You can also reference a property in this field.

  7. Click Save.

You can test your changes by running your rule.

Did you find this content helpful?

Have a question? Get answers now.

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