Modify edit modal view of entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rober
    Junior Member
    • Jul 2020
    • 13

    Modify edit modal view of entity

    Hi,

    I want to add some custom logic regarding to autofill an entity field based on some data i have on browser's localStorage.

    I made it for full form view of the entity but i can't make it works for the modal view.

    In clientDefs i overridden edit-small view but nothing happens.

    Any ideas?

    Thanks


  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    If you are making some changes in js or json files you always need to clear cache in Administration -> Clear Cache. Also, you don't need to fire Clear Cache each time if you uncheck the 'Use Cache' box in the Administration -> Settings.

    Comment

    • Rober
      Junior Member
      • Jul 2020
      • 13

      #3
      Hi,

      Thank you very much for the tip.

      My mistake was in the json file definition, i was overriding "views" and i needed to override "recordViews"

      I upload the correct json definition for what i was trying to accomplish.

      I hope it helps someone in the future.

      Comment


      • esforim
        esforim commented
        Editing a comment
        Any screenshot of it in action?
    Working...