Jump to content

Suppress dont work


jonte

Recommended Posts

Hi

 

I have a row that i like to suppress if no value is present.

 

In my template i have 2 rules ("HidePhoneNumberLabel") on this ror and Suppress if Empty activated. The result is that FP suppress as supposed if both rules have nothing to return, but it only returns the value of the rules if both rules returns values. If only one rule have value and the other not FP suppress the row without returning the value. Could it be a bug?

 

FP 5.1 user.

 

Regards Jonte

Link to comment
Share on other sites

Can you post the syntax of your rules? Also, are you using "Suppress if Empty" or "Suppress if Containing Empty Variables"?

 

You probably want to have the first setting ("Suppress if Empty") and rework your JavaScript logic to return the entire line, which may be empty if both fields are empty. You may need to add a third rule to do this, something like:

return Trim(Rule("HidePhoneNumberLabel") + " " + Rule("HidePhoneNumberLabel2"))

Link to comment
Share on other sites

"Suppress if Containing Empty Variables" only returns value if both fields containing values. If only one field contains value it suppress without returning the other fields value.

 

Your code is the way to go, i was one the same track of having one rule only. Tnx.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...