Home › Forums › General discussion › Tabs and Rules
- This topic has 15 replies, 2 voices, and was last updated 4 years, 7 months ago by
Alexander Bautz.
-
AuthorPosts
-
-
January 23, 2020 at 21:32 #28358
I created a Tab with a rule to hide all but 2 form fields. Then I created rules that when one of the options is selected in the second form field of “Request Type” different questions populate. It works separately but not together. When someone clicks to add new item to list I only want the two fields of Requestor and Request Type to show and all the rest hidden. But then follow the rules I completed for the different request types. It seems the Tab rule overrode the specific rules. Did I do this wrong? Can I remove the Tab rules and just create a rule to hide all the columns except for the desired 2? I tried that and it did not work…
-
This topic was modified 4 years, 7 months ago by
Danielle Arcuri.
-
This topic was modified 4 years, 7 months ago by
-
January 23, 2020 at 23:41 #28361
Not sure I follow you 100% here, but you don’t need any rule to initially hide the fields you have other rules on. If a rule triggers on a choice field having the value “Choice 1” selected, you set it to show the fields corresponding with that choice. If the rule is true, it will show the fields, but if it is false it will hide the fields.
Repeat for the other options of that same field and you should be OK.
Alexander
-
January 24, 2020 at 15:32 #28363
All of the rules work properly when a selection is made in the dropdown box. What is not working is the initial load. When someone clicks add new item to the list it is showing ALL fields. I only want the first 2 to show.
-
January 24, 2020 at 18:35 #28366
Can you show me screenshots of your rules also? – there are different configuration options so I need to see the rules to give you a correct answer.
Alexander
-
January 24, 2020 at 18:46 #28368
attached
-
January 24, 2020 at 18:59 #28371
Thanks,
The one thing almost everyone struggles with is the automatic reversal of rules that are not matched.What you want to do is to ONLY add the visible fields to your rules and NOT the hidden ones.
For example: if your rule triggering on “System access” is true, the fields set as “Visible fields” will be shown, if not the same fields will automatically be hidden.
Try it out and let me know how it works out.
Alexander
-
January 24, 2020 at 19:58 #28373
that worked, thanks so much!
-
January 24, 2020 at 20:58 #28375
I’m glad it worked out – have a nice weekend!
Alexander
-
January 29, 2020 at 18:12 #28423
I have one more problem with this. When I edit the item in the list the fields I have set to visible do not all show up. It works when I create the item but not in the display or edit. I have set up the same rules in the display and edit forms. Please advise.
-
January 29, 2020 at 20:08 #28425
Try activating “debug” on the rules (top right corner of each rule) and look at the output below the form when you load it. Does the status of your rules look right?
Expand the rule in the debug output to see what it does.
Alexander
-
January 29, 2020 at 20:27 #28427
I clicked debug and I have 2 rules that are green and the rest are red.
This is an example of one in red:
DocChange [index: 4] (load)
Trigger: Request_x0020_Type
Operator: Equals
Target value: Document Change
Current value: System Access
Match = FALSECurrent index: 4
TriggerMap: 0, 4, 5, 6, 9Reversed actions for “DocChange [index: 4]”
Mandatory fields:
Optional fields:
Hidden fields: Document Name, Desired Effective Date, Completion Date, Status
Visible fields:
Visible headings or elements:
Hidden headings or elements:
Read only fields:
Editable fields:
Hidden tabs:
Visible tabs:I couldn’t find much information on how to debug based on the results?
-
This reply was modified 4 years, 7 months ago by
Danielle Arcuri.
-
This reply was modified 4 years, 7 months ago by
Danielle Arcuri.
-
This reply was modified 4 years, 7 months ago by
-
January 29, 2020 at 23:25 #28431
The debug output shows which rules are evaluated to true, and what the actions is performed by this rule.
This particular rule states that the Request Type is NOT Document Change, and therefore it HIDES the fields Document Name, Desired Effective Date, Completion Date, Status.
Alexander
-
January 30, 2020 at 14:24 #28433
Ok that makes sense I probably used the wrong example.
This one is in green yet the last 2 fields do not show up (Completion date and status) when Editing the form.
SystemAccess [index: 0] (load)
Trigger: Request_x0020_Type
Operator: Equals
Target value: System Access
Current value: System Access
Match = TRUECurrent index: 0
TriggerMap: 0, 4, 5, 6, 9Actions for “SystemAccess [index: 0]”
Mandatory fields:
Optional fields:
Hidden fields:
Visible fields: TM Name, Business Need, Desired Effective Date , Completion Date, Status
Visible headings or elements:
Hidden headings or elements:
Read only fields:
Editable fields:
Hide save item button: false
Hide cancel button: false
Hide edit item button: false
Hidden tabs:
Visible tabs:
Set field value: []
Display message:
Alert message:
Selected tab:
Run these functions:
Send these emails:
No reverse: false
Stop and exit: false
Jump to rule:-
This reply was modified 4 years, 7 months ago by
Danielle Arcuri.
-
This reply was modified 4 years, 7 months ago by
-
January 30, 2020 at 14:28 #28436
What usually causes this is that there are other rules interfering – do you have other rules that could be set to hide these fields if the rule is evaluated to true (or if it’s reversed when evaluated to false)?
Alexander
-
January 30, 2020 at 14:30 #28438
Yes I have one rule that hides them. Do I need to make them visible on that rule?
-
January 30, 2020 at 15:15 #28440
It’s hard to tell without looking at it, but does one rule hide the fields and another show them? – maybe you need to check the “No reversing of this rule” checkbox in the rule to ensure it only does what it should when the rule evaluates to true and don’t reverse the actions if the rule evaluates to false.
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.