Description of the HR Case Showing the variables which are not filled in the form

Sruthi18
Tera Contributor

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 !!


6 REPLIES 6

PrashantLearnIT
Giga Sage

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

Ankur Bawiskar
Tera Patron
Tera Patron

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

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

Hi,

this is the function within that script include which gets the questions and it's answers

Function: _getProducerQuestions

Regards
Ankur

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

@Sruthi 

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

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