Setting the Yes/No field's default value to None

JohnnySnow
Mega Sage

Hi Team,

 

I have a catalog item with Yes/No as one of the field type. For this field we have also enabled 'Include None' option.

I want to set the default value to --None-- in this case. I have tried below options in Default value of the field

- Null

- ''

-None

- single space

All these creates a new option in the Yes/No field.  Setting the field value through client script works fine. But the issue is, if I'm not showing this field on the front end then in the flow designer when I lookup some values based on the front end selection, the value from this field comes as 'No' by default. Instead I want None to come up.

Does any one know how to set this value to None? 

Thanks

11 REPLIES 11

this is fine when you have the field on the form. That works fine in my case as well.

Try hiding this field from the front end and raise a request and check its value in the backend. This is where I'm facing the problem

Works fine for me

find_real_file.png

find_real_file.png

The issue was with my code. have fixed it. Thanks for all the help

Hi @Johnny 

Is your issue resolved?

If yes, Feel free to mark correct, if your issue has been resolved, so it ends up in solved queue.

Will be helpful for others looking for the similar query.

Marcin20
Giga Guru

Hi Johnny,

 

I have found similar thread that may be useful:

https://community.servicenow.com/community?id=community_question&sys_id=da192d951b48e810305fea89bd4b...

 

Best Regards,

Marcin