How to render placeholders on fields for Service Operation Workspace

June3
Tera Contributor

The mehtods of g_form.getElement("field_name"); and field.setAttribute('placeholder', "hint for the field"); in onLoad client script  work well for Core UI, but why this doesn't work for Service Operations Workspace? What are the correct methods to be used if SOW need to be retendered the hints as placeholders for fields? 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@June3 

that's not supported for workspaces.

You can't dynamically set it using g_form methods.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@June3 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

If g_form not supported, could you suggest any methods that can realize such functions

@June3 

it's not possible to do this in workspace, no alternative as of now as already informed

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader