› Forums › Classic DFFS › Rule processing and reversing
Tagged: DFFS, rule reversing, rules
- This topic has 8 replies, 2 voices, and was last updated 7 years, 10 months ago by
Alexander Bautz.
-
AuthorPosts
-
-
July 25, 2015 at 12:55 #7980
Yucel Cagri
ParticipantI am trying to get my head around rules processing and reversing. Task in hand is two check two fields, Field1 and Field2, and display heading1 or heading2 respectively if they are different from zero. If either is zero, relevant heading it to remain hidden. I also need some fields to be made readonly for non-zero values of either field.
I created a rule with trigger “Field1 greater than zero” and put heading1 into visible headings box. What I was hoping here for rule to reverse and make the heading hidden for the instances where Field1=0. But this doesn’t work (debug simply says no match).
I also tried to add a rule before, with form ready trigger, to make all headings hidden. Then I found out that they were staying hidden at all times.
Do I get rule reversing wrong ? Is it possible for you to share an example where it applies ?
Many thanks,
Cagri
-
July 25, 2015 at 22:13 #7982
Alexander Bautz
KeymasterHi,
What kind of field is Field1 and Field2? – if they are boolean (Yes/No) you must use true for checked and false for unchecked.Hover over the help icon for details for each selected trigger.
Alexander
-
July 25, 2015 at 22:17 #7983
Yucel Cagri
ParticipantHi Alexander,
They both are numeric fields, and operator I am using is “greater than”. I know trigger works because it there is a match read-only fields activated correctly. However, if there is no match, I am expecting the heading specified under “visible headings” to be hidden due to rule reversal. But they stay visible.
For a match, debug correctly reports a match and lists actions take, for a no-match, it reports no-match and does nothing.
I still might be getting rule reversal wrong.
Cagri
-
July 28, 2015 at 18:42 #8003
Alexander Bautz
KeymasterSorry for the delay – I didn’t get an email about your follow-up.
I have tested this, and using the attached setup it shows and hides the heading.
Can you test?
Alexander
Attachments:
-
July 28, 2015 at 19:30 #8010
Yucel Cagri
ParticipantHi Alexander, thanks for your response.
Please find attached a more representative example for my issue.
For the values of number > 0; I expect mentioned fields to be required, and heading to stay visible. Both works Ok.
When number = 0; I expect fields to stay optional (works naturally), and heading to be hidden due to rule reversal (doesn’t work).
Please note this trigger is to run only on form load, if it has anything to do with it.
Many thanks,
Cagri
Attachments:
-
July 28, 2015 at 23:10 #8012
Alexander Bautz
KeymasterOh – I see, I have failed to implement the reversing action “on load” on all the different triggers. I will fix this and release a new version within a day or two.
You can work around this for now by changing the rule to “less than” like in my example above.
Sorry for the inconvenience.
Alexander
-
August 3, 2015 at 12:03 #8044
Alexander Bautz
KeymasterHi,
I forgot to tell that I have released a new version July 31: https://spjsblog.com/dffs/dffs-change-log/Can you test this and let me know how it worked out?
Alexander
-
August 3, 2015 at 14:20 #8045
Yucel Cagri
ParticipantHi Alexander,
It works just fine, and per rule reversing setting solves other potential compications.
Thanks a lot
Cagri
-
August 4, 2015 at 20:43 #8054
Alexander Bautz
KeymasterThank you for the feedback – I’m glad it worked out.
Best regards,
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.