Preventing rules to fire during form updates

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Rem
Posts: 216
Joined: Wed Oct 03, 2007 8:58 am
Location: Sweden
Contact:

Preventing rules to fire during form updates

Post by Rem »

We have a small problem and are interested in the best (correct) way to solve it.

We have two attributes that depend on each other, that is having one without the other makes no sense.

There for we have a rule that checks if attribute A has a value and B not and vice versa.

Now the problem, somtimes the user wants to clear BOTH attributes and we are trying to make a process that does this but it gets stuck because of our rules. Ones attribute A is touched the rule fires and it is impossible to clear the attributes.

We managed a workaround but wonder if there is another way to do this.

Like just fire the rules on SAVE or priority or something?
Regards
Rune

Image
BLOMASKY
Posts: 1470
Joined: Wed Sep 30, 2015 10:08 pm
Location: Ocala FL

Re: Preventing rules to fire during form updates

Post by BLOMASKY »

IF you have the rules ONLY fire on the server and not dynamic, then it should only check that the fields have a value when saved to the disk.

Bruce
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Preventing rules to fire during form updates

Post by Jaymer »

or, like bruce says, add a DYNAMIC Rule that says
IF FIELD1 WAS CHANGED TO UNDEFINED THEN
FIELD2 = UNDEFINED

And that should blank the 2nd one when u blank the 1st one.

ok, If you blank the 2nd one 1st.. then I dunno - another rule? or check both
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Rem
Posts: 216
Joined: Wed Oct 03, 2007 8:58 am
Location: Sweden
Contact:

Re: Preventing rules to fire during form updates

Post by Rem »

Thanks for your answers, we will look in to it!

/RW
Regards
Rune

Image
Post Reply