Make fields Mandatory on specific view of rm_story table

Naveen87
Tera Guru

Hi Developers,

 

I have a requirement to make 4 fields mandatory on a certain view(ECC View) of rm_story table

 

Below fields to be made mandatory additionally for ECC View.

1. Product
2. Theme
3. Assignment group
4. Assigned to

 

Naveen87_0-1682680825919.png

 

 

Please suggest.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Naveen87 

create onLoad ui policy and make those 4 fields mandatory

To ensure it runs only for your view; Uncheck Global checkbox and select the View name on UI policy

AnkurBawiskar_0-1682681521887.png

 

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

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Naveen87 

create onLoad ui policy and make those 4 fields mandatory

To ensure it runs only for your view; Uncheck Global checkbox and select the View name on UI policy

AnkurBawiskar_0-1682681521887.png

 

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

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

@Ankur Bawiskar ,

View is a string variable for me.

I just tried to make Product mandatory but no luck.

 

Did I miss something?

Naveen87_0-1682682389321.png

Naveen87_2-1682682465362.png

 

 

@Naveen87 

type in the exact view name

you should find that view name in URL in sysparm_view

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

lp6
Tera Guru

write onload client script on that table 

lp6_0-1682681857651.png