contributte / contributte/datagrid

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

Open
#693 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
296
Forks
215
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the inline add/edit form lifecycle and the selectize integration described in the issue. Determine whether a callback or hook exists before the add form is shown, and verify the behavior by repeating the add-item flow and confirming that a new form can start with an empty selectize input.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.