I need help with modules and forms

Arthur Sanchez
Giga Guru

I'm creating an application through Studio, and I'm having trouble linking forms to modules, I want the same role to be able to access more than one form in different modules.
The application I was trying to create would have an employee registration form and a form that would search for any employee to let them go on vacation or not, I created two modules and two forms, but I can't link them, I put the name of the forms in the view name of the link type of each of the modules and I couldn't, please help me.
I'm using RELEASE Washington D.C.

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arthur Sanchez  

 

https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_buildneedit_utah_buil...

*************************************************************************************************************
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]

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

The problem is that the documentation doesn't specify which is which. My problem is formatting and linking modules to forms and list layouts.

For example, I have 4 modules (registration, all employees, approve vacations and vacations for employees) 2 are for listing records and 2 for new records. I have 2 forms, 1 to register an employee and another to give him vacation. And I have 2 list layouts, 1 for all employees and another to show only those who are on vacation.

But the documentation says:
View Name: Specifies the view in which the module opens.

Who does the view name refer to? to the form or list layout? and how to apply them to the modules I created in a specific way?

I want a certain new record module to access a certain form, and a certain record listing form to show a certain list layout

Remembering that I am creating everything through Studio

Hi @Arthur Sanchez  

 

Try this way

 

AGLearnNGrow_0-1709967356728.pngAGLearnNGrow_1-1709967389065.png

 

*************************************************************************************************************
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]

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

This is very empty, I don't understand how to handle it, the only thing I saw from 'View Rule' was:
(function overrideView(view, is_list) {

if (gs. getUser() . hasRo1e( 'name role' ) )
answer = 'user/solver etc';

})(view, is_list);

From what I understand, this is to set the roles to assign to users, I need instructions on how to set the view for the record listing modules and how to set the appropriate forms for the record creation/update modules. The documentation I find about this is vague and shallow, it doesn't explain much