datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

How to call custom JS before inline add/edit form is show

Open BigOHenry opened this issue 7 years ago • 1 comments

Hello, i have problem with inline add/edit and selectize:

  1. After click on add item the form for add is displayed.
  2. I search for some string in selectize (loaded from DB) and found items are correctly displayed.
  3. I select one of the found items and save the form.
  4. Repeat the steo 1 above.
  5. I click in the selectize input and there is item from step 3.

The goal is has always empty selectize when adding new item. Is there any way i could call custom JS before showing add form? I can clear selectize with JS easly, but dont know how or even if i can call it.

Is there any way? Thank you

BigOHenry avatar Aug 19 '18 16:08 BigOHenry

As a solution i do redirect for now.

BigOHenry avatar Aug 20 '18 09:08 BigOHenry