We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Widget

harry24
Tera Contributor

Hi , 

 

I have requirement where I have a field on catalog item says application when I select application respective questions should be populated, i have created custom table for storing question .

Now for displaying that I have created the custom widget and embedded that to my catalog item .

Now my issue is I dnt know how to capture the data of application that on change of application on client script of widget  

 

Can somebody help me .

 

Thanks 

8 REPLIES 8

Ankur Bawiskar
Tera Patron

@harry24 

but why are you using widget to show questions?

why not use standard variables?

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

Because the number of questions is large so the client wants dynamic population of questions 

@harry24 

how many?

using custom widget will have issues storing that in backend as the questions are coming using HTML element

Since those are not stored you can't use that information for reporting as well

So better go with standard OOTB variables

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Yes that's true we are just doing a poc and showing them the disadvantage. Could you please help how do I achieve that