Jump to content
  • 0

Hide the section based on the value of Yes/No


SunakoChan

Question

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...
×
×
  • Create New...