Error on adding decimal and user cannot navigate to next screen
Error occurs on adding a decimal value to a field and submitting the form. Hence, user is unable to navigate to the next screen. This occurs sporadically.
This occurs for Currency fields when the 'Display value using read-only format' checkbox is selected.
Value is is not a valid decimal value
Steps to Reproduce
- Configure a pxCurrency control.
- Configure the 'Display value using read-only formatting' option.
- Submit the form.
An issue in the custom application code or rules.
The out-of-the-box flow action Submit buttons are not used. These buttons are hidden by the flow action configuration. The section has the application's Submit button with following actions.
- Local action
- Finish assignment
- Refresh-This section
The 'Local action' has a When condition to ensure that the local action appears conditionally. However, the 'Finish assignment' and 'Refresh-This section' actions do not have this condition.
In this scenario, the 'Finish assignment' and 'Refresh-This section' actions are initiated. The assumption is that these actions are always sequential; but they are not. There are server dependent rendering XHRs whose execution time depends entireely on the time the server takes to process the XHRs.
Since the 'Refresh-This section' action happens after the 'Finish Assignment', the error occurs. This is because the 'Finish assignment' action removes the current screen from the UI where the next 'Refresh-This section' attempts to refresh the screen.
Perform the following local-change:
- Remove the 'Refresh-this-Section' call from the Action list .
- Ensure that the 'Finish Assignment' action is the last in the list of actions.