Adding Field Manager params to enum fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • planetrocke
    Junior Member
    • Feb 2017
    • 25

    Adding Field Manager params to enum fields

    I want to add custom parameters to enum fields, similar to Is Sorted, Display as Label... I know how to push them into the view for fieldManager, but I'm not sure how to have them save to the field itself.
  • planetrocke
    Junior Member
    • Feb 2017
    • 25

    #2
    This looks like it may be a Core modification and something I cannot do in a module/extension. Please correct me if I am wrong. What I am attempting to do is set up certain enum fields to respond certain ways based on if they have custom params.

    Comment

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #3
      Your 2nd post clarification make it a bit clearer on what you want but I'm still having trouble picturing the scenario.

      "respond in certain ways" mean what? Can you post example?

      E.g. You want does your Enum 1 to change based on Enum 2 condition?
      e.g. You want to hide Enum 1 when field: description is blank?
      e.g You want to set it as Read only when Enum 1 = Close?

      Comment

      • planetrocke
        Junior Member
        • Feb 2017
        • 25

        #4
        Originally posted by espcrm
        Your 2nd post clarification make it a bit clearer on what you want but I'm still having trouble picturing the scenario.

        "respond in certain ways" mean what? Can you post example?

        E.g. You want does your Enum 1 to change based on Enum 2 condition?
        e.g. You want to hide Enum 1 when field: description is blank?
        e.g You want to set it as Read only when Enum 1 = Close?
        Thank you for the response, and I can provide some clarity:

        I have code (in edit.js and detail.js) which adds a link below an enum field's select box. Right now I am showing it on all enums, but I want only certain enum fields to have this link shown below them. I wanted to be able to add this as a boolean field on the fieldManager.

        Comment

        Working...