Description of the HR Case Showing the variables which are not filled in the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:53 AM
Hello all ,
I have submitted the HR Case from portal by filling up a form. There are many variables which are dependent on each other. Based on my selection , I have submitted the case.
Usually , the behaviour of the system is to capture all the details/ answers from the form and put it in the Description of the case.
Here in my scenario, it is working same but the variables which I have not filled/not selected/unanswered is also shown in the description as False/empty by giving the name of the variable.
I donot want the unfilled /unanswered variables to be seen in the description of the case . Is this possible to achieve ?
If yes please let me know on how to proceed on this !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:57 AM
Hi Sruthi,
Please write UI Policies to hide empty variables
Thanks,
Prashant
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:58 AM
Hi,
that's the default behavior.
you will have to tweak the OOB script include for this to ignore variables which are unchecked(false) or empty
Debug the internal functions and update it.
Script Include: hr_ServicesUtil
Function: createCaseFromProducer
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2022 06:59 AM
Hi,
this is the function within that script include which gets the questions and it's answers
Function: _getProducerQuestions
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 09:11 PM
Thank you for marking my response as helpful.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader