Jump to content
  • 0

Hide sections and require fields based on a value


imJihyo

Question

Hello! I am trying to hide 4 sections of my details page based on the value of my field Status. I will also be showing a specific section based on the value and all of the fields under it will be set to required. However, I cannot reference a section more than once when I am creating rules. Any help will be much appreciated. Thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi! What you can do is I created one rule per value to hide sections and one to require fields. I am not sure if there is an easier way to do this, but I think it works fine. You can check the sample DataPage here. To achieve this, I created a total of 10 rules since I am using 5 values that I will refer to.

In this screenshot, if my field is not equal to Opened, I will hide section 2, which is the only section that I want to show up if the field IS EQUAL TO Opened.

Treat it as a reverse way. Instead of setting the criteria to IF FIELD is not equal to THIS VALUE, THEN SHOW THIS SECTION. In my example, what it is doing is IF FIELD is not equal to THIS VALUE, THEN HIDE THIS SECTION. (I hope this makes sense :D)

image.png.e3d988009ead2c98df131b940e9d05b4.png

 

This rule is for setting the fields under section 2 to required. To explain this, what my rule does is it checks if my field is not equal to Active, Pending, Closed, and Cancelled, the fields under my section 2, the section that shows up if the value of the filed is Opened, will be required. 

image.png.8cbe842df3033b1c083b776f931467c1.png

You'll have to create 2 per value. Say you only have 2 values to choose from, you will only create a total of 4 rules. I think this is a little hard to understand or a little confusing, but I hope you understand it. Good luck! :wub:

 

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...