Basic Customization > User Interface Customization > Presenting Information in the UI > UI Validation > Solutions > Procedures – Post-select Validation > How to Handle UIValidationStatus.PROMPT_FOR_CONFIRMATION
  
How to Handle UIValidationStatus.PROMPT_FOR_CONFIRMATION
If your validator retuns PROMPT_FOR_CONFIRMATION status, it need to be configured special way by using PTC.validation.AJAXPostSelectValidation JavaScript function.
<action name="myAction" >
<command class="com.ptc.xxx" method="function" onClick="
PTC.validation.AJAXPostSelectValidation(event, validationKey)"/>
</action>
In this case, once you have made a/few selections and click myAction:
PTC.validation.AJAXPostSelectValidation function based on the provided validationKey executes post-select functions on the mapped validator.
If the status is PROMPT_FOR_CONFIRMATION, confirmation pop-up will be shown and based on your selection further processing will happen.
If you opt for “yes” for the confirmation or the status was PERMITTED, another request will be send to the server to do the operation. There is inbuilt intelligence not to invoke your validator again for this request.