A quick post …. In Unified Service Desk (USD) for Microsoft Dynamics CRM you might want to set focus to a particular field on a CRM form.
There might be multiple situations when you’d like to set focus to a particular field on a CRM form from a USD action. Maybe you’ve just given a message that a field is invalid, so it would make life simpler for the agent to also position them on that field. This is simple to do, here is how.
Create an action to set the focus.
You can also get a little more complicated! You can see in the example below that I have created a small function that will give the description field focus if it is blank but will otherwise give focus to the subject field. This might not be the best example in the world but hopefully it points to some syntax that you might find quite useful!
Notice, I am also using a getValue command here to look at the descriptions current value.