Support Article
Required field validation are fired on backwards flow navigation
SA-52474
Summary
Navigating backwards through a screen flow, activates the required field validations.
Error Messages
Not Applicable.
Steps to Reproduce
Navigate backwards in a screen flow and violate the required field validation.
Root Cause
This is as per Pega product design.
Resolution
Perform the following local-change:If the requirement is to ignore such validations while navigating through the screen flow, then disable this behavior by checking the 'allow errors' check box at the Start shape of the main flow.
This local change suppresses validations while navigating both backward and forward in the flow.
If the requirement is to only disable validations when navigating backwards in the flow, then override this function in a non-autogenerated section:
FormNavigate.prototype.navigate = function(flowStep, flowName, flowPath, event,bFAProcessOnJump){
event = (event == undefined)?window.event : event;
var oSafeURL = new SafeURL();
oSafeURL.put("pyActivity","GoToPreviousTask");
oSafeURL.put("TaskName",flowStep);
oSafeURL.put("flowName",flowName);
oSafeURL.put("skipValidations",true);
if(flowPath)
oSafeURL.put("flowPath",flowPath);
if(!formSubmitted){
formSubmitted = doFormSubmit(oSafeURL, null, null, event);
}
event.cancelBubble=true;
}
Published July 23, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.