Hi,
I've a pre-update plugin. There'll be some business logic and if it's not correct, the plug-in will throw an exception. So, data will not be updated.
My problem is after throwing error, I want to reset the value of some attributes because I still have some logic to disable/enable form fields.
For example, a picklist attribute called new_type has three value A, B and C. If the value is A, on form load, I'll enable the text attribute called, new_remark. Otherwise, it'll be disabled. Then, a picklist will be disabled once it has value.
If the user choose picklist value as A, and click save, pre-update plug-in will check based on business logic and if there is any error, the exception will be thrown. But on the form the picklist value becomes A (actually it's not yet in database), and cannot
choose it again.
I tried to inject value to target image, but it's not successful.
How can I achieve?
Regards