Auto-populate Template Field on Project Form via 'Apply Template' UI Action in SPM

Dany Rohinth
Tera Contributor

In the SPM module, I created a new field called 'Template' on the Project table form. When a user selects a template using the 'Apply Template' UI action, I want the selected template name to automatically populate in the 'Template' field on the form. How can I achieve this?

DanyRohinth_0-1747896065336.pngDanyRohinth_1-1747896107640.png

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Dany Rohinth 

this link has solution, please enhance

Programmatically Apply a Template To a Form? 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Hi @Ankur Bawiskar ,

Thanks for your response. I reviewed the suggested link and attempted the approach, but unfortunately, the code is not working as expected in my case.

Could you please take a look and help enhance it based on the current issue? Any further guidance would be appreciated.

Best regards,
Dany Rohinth



@Dany Rohinth 

share your script and what debugging did you perform?

If my response helped please mark it correct and close the thread so that it benefits future readers.