Jump to content
  • 0

Hide the section based on the value of Yes/No


SunakoChan
 Share

Question

Hi team,

Is it possible to use a hidden Yes/No field for the condition of the rule in Details page? I tried to use the field Yes/No the value that I set is equal to Yes, Y, True, T or 1. However it seems that it is not hiding the fields on the report.

Any thoughts? Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @SunakoChan,

Have you try this, 

  • Set the field to hidden
  • Go to the Rules tab
  • Add new rule
  • On the configuration set the;
    - 'Condition' to 'Parameter'
         - Call the actual field example: [@field:FIELDNAME]
    - 'Value' to 'Yes'
  • You can add HTML block to get the value of the field
    image.png.ef0e9a97667399ff676fa1af2fd29a22.png
  • Then you can choose action to implement.


image.png.c632fc57f03f7bbbe971d189d86e7bb5.png

Hope this helps!

Link to comment
Share on other sites

  • 0

You could also use the ol' hide with divs trick.

Instead of setting the checkbox as hidden, keep it as an editable checkbox. Then put a HTML block above and a HTML block below the checkbox with the code below. This will hide the checkbox field from the user, but still allow the field to be used in Rules. 

First HTML block: 

<div style="display:none;"><div>

Second HTML block:

</div></div>

 

However... I think it would be possible for someone to change the checkbox value via devtools with this way. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...