Field controls using State Flows does not mark the field mandatory and just throws error message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 01:55 AM
Hi SN Experts!
I am creating state flows for a project in CSM.
I have defined some field controls using in each state flow to have the mandatory logic in place.
The problem is When going from one state to another using UI Action (automatically created using State flow)
If the mandatory fields are empty in workspace, the form does not blinks and marks those fields red as it usually happens if we create client scripts/ UI policies.
As you can see in the following image when I click on Start UI Action, I am getting the error message that Assigned to is Mandatory but its not flashing or marking the field as Mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 03:50 AM
It could be that UI policies or Client scripts are conflicting with your Field controls in the State Flow, so the UI doesn't show the fields as mandatory, but on checking the fields when clicking the button, it does do the validation and shows the error.
Do fields show as mandatory when done through a UI policy? I saw once that custom UI Themes were in the way (just not showing anything on mandatory fields).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2024 04:03 AM
Hi Mark,
Yes normal UI policies and Client scripts show the fields as mandatory.
When state flows are created, Client scripts are also created if we add any fields in field controls, I checked that client script and there also g_form.setMandatory function was used, so ideally it should Highlight those fields.
No other client script/ UI policies are conflicting with my state flows.
Any help would be greatly appreciated. Thanks!