Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us