PCS web form - how to make a field as required if user clicks on APPROVE and optional if click other
I'm new to Process applications (PCS).
I have created a web form which is having a field which is mandatory but i want to create a on submit event by which if the user clicks on APPROVE button then only I want that particular field as required else no.
Currently if user clicks on any button like APPROVE or REJECT the field is set as required only. Please help
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):