Assignee Field Read-Only after Inc is Created and saved

Document created by TMACUL Champion on Jun 26, 2015Last modified by TMACUL Champion on Jul 1, 2015
Version 2Show Document
  • View in full screen mode

Do you want to force all Transfers through Activities\Transfer and not on the detail_in form?

 

Trying to make the Assignee field on a Inc Read-Only after the ticket has been saved during initial creation.

 

1.

 

after this line:

 

<PDM_MACRO name=dtlLookupReadonly hdr="Reported By" attr=log_agent>

 

and before this:

 

<PDM_MACRO name=dtlLookup hdr="Group" attr=group evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

 

detail_in.htmpl originally had:

 

<PDM_MACRO name=dtlLookup hdr="Assignee" attr=assignee evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

 

I change for:

 

<PDM_IF "$prop.form_name_3" == "edit" && $args.id == 0>

<PDM_MACRO name=dtlLookup hdr="Assignee" attr=assignee evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

<PDM_ELSE>

<PDM_MACRO name=dtlReadonly hdr="Assignee" attr=assignee>

</PDM_IF>

 

saved the file.

 

2.

Run "pdm_webcache -H"

 

3. On Browser: Clean-up your cache files and delete the browser cached/temp files and see the result.

 

 

---------------------------------

Author: Tiago Macul

Tiago MACUL's Blog


---------------------------------

Attachments

    Outcomes