I use Pre-parser module for some Form submissions, always works fine.
But there must be some trick, how to edit two different form IDs withing one rule, because the code works unexpectedly!
Example:
Processing new submission on form id 5 via Pre-Parser rules - no troubles.
In the middle of code I need to edit submission id 2 from another form id 7 by:
ft_update_submission (7, 2, $hash)
At this moment results of whole rule starts be strange, it looks that adding one AND updating second form are interfering (results depends also on location of ft_update_submission in the code).
I have unique names of form fields, for database fields using the same names as forms have.
Does somebody have an idea?
Or is there any other way, how to update two tables in two different forms?
Actually I need only check the validation of discount coupon during counting a price and disable its validity after first use.
Thank you for any help.
But there must be some trick, how to edit two different form IDs withing one rule, because the code works unexpectedly!
Example:
Processing new submission on form id 5 via Pre-Parser rules - no troubles.
In the middle of code I need to edit submission id 2 from another form id 7 by:
ft_update_submission (7, 2, $hash)
At this moment results of whole rule starts be strange, it looks that adding one AND updating second form are interfering (results depends also on location of ft_update_submission in the code).
I have unique names of form fields, for database fields using the same names as forms have.
Does somebody have an idea?
Or is there any other way, how to update two tables in two different forms?
Actually I need only check the validation of discount coupon during counting a price and disable its validity after first use.
Thank you for any help.