We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

GlideModalForm - template toolbar

Colleen
Tera Expert

We're using a plugin that adds a UI action button to task. When the button is clicked it calls GlideModalForm to open a record on another table in a pop-up form. When the user fills in the pop-up form and saves the record, the task is automatically closed.

 

Our users want the option to use a template to fill in fields in the pop-up form. The users do have rights to create templates on that table, but the template toolbar is not visible on the pop-up form.

 

How do I make the template toolbar visible on a pop-up form opened by a GlideModalForm call?

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Colleen 

screenshots please

code screenshots of that UI action

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

Tanushree Maiti
Tera Patron

Hi @Colleen 

 

Share the current screen shot which you are getting.

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Colleen
Tera Expert

Never mind. I've figured it out.

 

I have to set sysparm_titleless to false via GlideModalForm.setPreference, e.g.

        var modal = new GlideModalForm('The Title', 'the_table');
		modal.setPreference('sysparm_titleless', 'false');
        modal.setSysID(id); 
        modal.render();