Auto populate fields based on module chose

ServNowDev
Tera Guru

i have two modules that point to the same table, table A, two modules access this table with the type "New Record",

on the form i have a field name incident type, types consist of Hardware and software. and i have a Hardware Module and Software module, I want the incident type field to auto populate with Hardware when the hardware module for new incident is selected and same for software. Right now im using a template and setting the template for each in the attributes of the modules, is there a way to do without using templates?

 

 

Thomas42_1-1707922012149.png

 

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hi @ServNowDev 

you can go to the application module and pass on the argument :

&sysparm_query=name=test

where name is your field name, and test is the value

Best Regards
Aman Kumar

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @ServNowDev 

May be you not like the solution ,

 

You can create 1 module

On click on same, open an interceptor

where user will select Hardware / Software

and use these values to set 

 

You can take problem task as reference for same.

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

ServNowDev
Tera Guru

I will need the modules to be seperate is there a way to do it via attributes but not using a template?

Community Alums
Not applicable

Hi @ServNowDev ,

 

Yes you can, refer to below setting:

Screenshot 2024-02-15 at 11.33.04.png

 

[your_table_name].do?sys_id=-1&sysparm_query=[your_field_name]=hardware&sysparm_stack=[your_table_name]_list.do

 

Aman Kumar S
Kilo Patron

Hi @ServNowDev 

you can go to the application module and pass on the argument :

&sysparm_query=name=test

where name is your field name, and test is the value

Best Regards
Aman Kumar