Jump to content

Error alert rule


MikeVM

Recommended Posts

Need somebody to help me to write a rule:

 

there are two text field (one them drop-down menu, second is multiline text.)

Customer should select from drop-down menu OR fill multiline text OR both.

Both fields cannot be empty - in that case client should receive kind of Error warning when he click "Refresh for preview".

 

thanks in advance. (we use FP Designer version)

Link to comment
Share on other sites

I would make a rule like so:

 
if (Field("MyDropDownFieldName") || Field("MyMultiLineTextFieldName"))
 return "";
//else
return "Both the drop-down menu and multiline text fields cannot be empty!"

Then I would put a text frame in the center of the page, and insert the variable with the name of the rule in big red text. When the preview is composed, the error message should be immediately obvious to the end user.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...