Reputation: 13
having another problem with some PL/SQL code.
My booking form
currently has a dynamic action applied to the discount
field. Radio buttons set at Yes
and No
. When Yes is clicked it enables the fields Vouchercode
and Discountamount
.
What I would like to do is set these fields to NOT NULL
when discount = yes
. BUT be null
if discount = no
Thanks
Upvotes: 1
Views: 445
Reputation: 60312
It sounds like you want to change the Required validation on the Vouchercode
and Discountamount
fields depending on whether discount
is 'Yes'
.
To do this, you change the validation code - you don't need a dynamic action.
e.g. instead of checking if Vouchercode IS NOT NULL
, change the validation to check Vouchercode IS NOT NULL OR discount = 'Yes'
.
Upvotes: 1