Hiding fields on Record producers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2014 10:43 AM
I am trying to hide the short_description field on a record producer. I created a UI policy that when the incident is a P1 it hids all fields and alerts the uset to call. The script is working for every field but the short_description field. I figured there was another UI policy or client script that was interfearing with the onChange UI policy so i disabled all UI policys and client scripts and tested the script. Again all other fields i am needing to hide in fact hids but the short description. How can i figure out what is interfearing with the UI policy to hide the short_description.
function onCondition() { g_form.setDisplay('short_description',false); g_form.setDisplay('Communications',false); g_form.setDisplay('u_investigation_opened',false); g_form.setDisplay('u_investigation_closed',false); g_form.setDisplay('u_incident_description_how',false); g_form.setDisplay('u_witnesses',false); g_form.setDisplay('u_incident_type',false); g_form.setMandatory('Employee Involved', false); g_form.setMandatory('Employee Involved', false); g_form.setMandatory('short_description', false); g_form.setMandatory('u_employee_name', false); alert('Code 1 Incidents require a phone call); }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2014 06:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2014 03:31 AM
since I see you are tyring to hide multiple fields, you can did this by grouping fields into a container, and then hiding the entire group by using that container start tag, i.e. using the code to hide the whole group\container, where the id is the word container + the container sys_id
function onCondition() {
document.getElementById('container_d9bab1587782adc0283358191d665133').style.visibility="hidden";
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2014 03:56 AM
is short description being set to mandatory? by default a ui policy will NOT hide a mandatory field as it will stop you from submitting the form if it did that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2014 05:22 AM
I had a similar case during my days with the record producer. It turned out that another UI policy was making the field visible because the "Reverse if false" was checked and the condition of that UI policy was failing. This caused the field to be visible. It was supposed to hide the field if the conditions passed.