Auto-Focus & Validation Behavior in List View When Mandatory Field is Empty
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 04:27 AM
I'm trying to enhance the user experience in the list view during inline editing.
Here’s the scenario:
- When the "Status" field is changed from "Spare" to "In Use", the "Number" field becomes mandatory.
- I’ve applied a Data Policy that currently raises an error if "Status" is set to "In Use" and "Number" is empty.
- Instead of immediately showing an error, I’d like the following behavior:
- When "Status" is set to "In Use", the focus should automatically move to the "Number" field and enter cell edit mode.
- If the user exits the "Number" cell without entering a value, then the error should be raised and "Status" should retain it's earlier value and not change to "In Use".
Is there a way to implement this behavior in list view using client scripts, UI policies, or any other recommended approach?
Any suggestions or best practices would be greatly appreciated.
Thanks in advance!
0 REPLIES 0