jo-ka
Member
Hello.
If I have a form where one of the fields is active (with yes/no element) and then I have another field, lest's call it wire transfer, based on yes/no element, is there a way to have a validation on the form that prevents saving the form, when the wire transfer is set to yes and active is set to no?
In order words, it doesn't make sense to set one field to yes, if the other is set to no. This is to avoid the end user to make the mistake of charge the monthly subscription, when the customer is not active.
Plus:
I also have a list plugin that changes the state of wire transfer to yes (this to avoid editing the customer record and set wire transfer easily). Is there also a way to have the same behaviour, this is, prevent the user to set wire transfer to yes, if the field active is set to no?
Or even better...
On the list, have a custom.css that hides the wire transfer list button, if the active value is set to no?
Thanks in advance.
If I have a form where one of the fields is active (with yes/no element) and then I have another field, lest's call it wire transfer, based on yes/no element, is there a way to have a validation on the form that prevents saving the form, when the wire transfer is set to yes and active is set to no?
In order words, it doesn't make sense to set one field to yes, if the other is set to no. This is to avoid the end user to make the mistake of charge the monthly subscription, when the customer is not active.
Plus:
I also have a list plugin that changes the state of wire transfer to yes (this to avoid editing the customer record and set wire transfer easily). Is there also a way to have the same behaviour, this is, prevent the user to set wire transfer to yes, if the field active is set to no?
Or even better...
On the list, have a custom.css that hides the wire transfer list button, if the active value is set to no?
Thanks in advance.