Please help me to change the field type true/false to yes/no..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 05:38 AM
Hi guys,
I have field on incident management coming from task sla table i.e. "has_breached", it is a true/false field and the values popping are True/False field on the incident management.
I have a requirement where i want to display Yes/No instead of True/False for the has_breached field. How to edit the default value of True/False ? is there any attribute or override that i can utilize.
Thanks and regards,
Rajani
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 05:42 AM
True or false, Yes or no. is almost the same. "has_breached" is a OOB field. I would not modify the field type of OOB. if you want the field to be yes or no. Create a new field and use field type as choice. Here you can add values yes and No.
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 05:47 AM
Hi Rajani,
It is not recommended to change task table field because it is been used by number of tables in service now.
Either you can create new field but choice type and have two choices as Yes and No. And you can handle it through Onchange client script
which will work on has_breach field.
For example: If has_breach changes to false set custom field to No and If true then set custom field as Yes.
Thank You,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 05:54 AM
Hi Rajani,
As Harish already stated, don't change the OOB field, instead you could create one custom field and add choices 'Yes/No', and via before Update BR set it to Yes when current.has_breached=true and No when current.has_breached=false.
if(current.has_breached=true)
current.setValue('u_breached','yes');
else
current.setValue('u_breached','no');