Disable button create

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • binhchay
    Junior Member
    • Aug 2022
    • 11

    Disable button create

    I want to delete button create new record in pic 1.
    Thank u so much
    Attached Files
  • Kyle
    Senior Member
    • May 2020
    • 143

    #2
    In the clientDef file for this object add the following

    "createDisabled": true

    Comment

    • binhchay
      Junior Member
      • Aug 2022
      • 11

      #3
      Originally posted by Kyle
      In the clientDef file for this object add the following

      "createDisabled": true
      Thank you for solution. Can I ask more question ? I want to add option like (edit, delete, ...) same like in pic. How can I do ?
      Attached Files

      Comment

      • Kyle
        Senior Member
        • May 2020
        • 143

        #4
        you need to set the row actions view to do this, requires JavaScript its a lot more involved than the create button.

        Set the list view to use a custom view in clientDefs file
        in the new list view set the row actions view
        in the row actions view edit the row actions available

        Comment

        • esforim
          Active Community Member
          • Jan 2020
          • 2204

          #5
          Couldn't you just disable the Role/Team permission for Create, and allow "Read" or "View" own only?

          Off-topic: interesting way to do your Timetable/Roster

          Comment

          • binhchay
            Junior Member
            • Aug 2022
            • 11

            #6
            Originally posted by Kyle
            you need to set the row actions view to do this, requires JavaScript its a lot more involved than the create button.

            Set the list view to use a custom view in clientDefs file
            in the new list view set the row actions view
            in the row actions view edit the row actions available
            Can you explain more clearly? Or can give me some for example ? Thank you so much

            Comment

            • binhchay
              Junior Member
              • Aug 2022
              • 11

              #7
              Originally posted by espcrm
              Couldn't you just disable the Role/Team permission for Create, and allow "Read" or "View" own only?

              Off-topic: interesting way to do your Timetable/Roster
              I want to apply to all for role. Can do it with code ?

              Thank u.

              Comment

            Working...