Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

g_form.getControl().styles is not working in the Agent Workspace

Madhav Rao D V
Tera Expert

Hi All,
I wanted to highlight the field(for example: Number) using a specific color. For that, I used the g_form.getControl.style in client script to achieve the result. i can see the field highlighted in the backend, but not in workspace. I wanted the fields to be highlighted in workspace as well. Is there any way to do it??

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron

@Madhav Rao D V g_form.getControl is not supported in workspace. Same is mentioned in this support article as well https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855260

 

 

View solution in original post

5 REPLIES 5

muneermajeed
Tera Contributor

Bro if the g_form.getcontrol() is not working on the workspace then how can you solved your issue please reply i am facing the same issue now