AnsweredAssumed Answered

Custom Field Not Seen Initially (until saved)

Question asked by jlhawley on Oct 5, 2018
Latest reply on Oct 12, 2018 by Lindsay_Estabrooks

With a lot of help (thank you cdtj), we created a custom required field for only specific categories and for only select roles CR Fields Only for Select Roles  . 

 

Here is what we are seeing (also in attachments):

 

   1. The field doesn't show at all for any Roles when the new detail_in.htmpl form is loaded

   2. The field will then show up after the first save (for everyone to see)

   3. After this, any editing allow the Role restrictions to kick in and ensure required by the selected roles.

 

I need this form to be visible on creation of a new incident while preserving step 2 and 3 where it works perfectly!

 

I think the initial argument where I describe the affected category is restricting the view initially until the category is selected AND saved (which then allows the field to be seen). If so, how would I fix this?

 

Code:

<PDM_IF "$args.category.sym" == "Hardware.Workstation.Laptop.Install">
<PDM_IF $SESSION.ROLE_ID == "400151">
<PDM_MACRO name=dtlTextbox hdr="Machine Name" attr="zz_PCNAME" make_required=yes>
<PDM_ELSE>
<PDM_MACRO name=dtlReadonly hdr="Machine Name" attr="zz_PCNAME">
</PDM_IF>
</PDM_IF>

Outcomes