Can i show template inside a variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello All,
I want to have a template where i will have some patient details.
like name ,age,gender like these will be questions.
and these questions even i can store in a table as well i have a custom table even i can reuse that if we need.
My requirement is when i select option insurance type as health for example i have a variable called patient details these template questions should be applied and user should be able to select also and fill it .
Can i achieve this somehow either by using multiline variable set or using templates or something.
@Ankur Bawiskar any suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
from your question I think you are talking about some catalog item.
But didn't get your complete business requirement.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hello @Ankur Bawiskar ,
There is a set of questions like gender,patient name etc i want to keep these questions in a custom table or in any other template tables.
Whenever i select a variable type for example x i want to should show these template questions on the catalog form so that the requester can fill and submit the form to order one item.
How i can get this done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
48m ago
you can create a custom table and hold this information like this
VariableName - Name
Value - Abel
Variables - variable1,variable2,variable3
Then write onChange catalog client script and use GlideAjax and bring the variables to be shown by passing the value X and then use g_form.setDisplay() to show those variables on form
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
45m ago
Hello @Ankur Bawiskar ,
This is fine what i need is i only want those questions values will be selected by the requester only.
I think i am getting an idea of MRVS where i will create the variables/questions which i wanted to implement on a template then will show the variable set itself depending upon the submission values .
Let me try this out.
Thank you
