Jump to content

deWit's Content

There have been 1 items by deWit (Search limited from 22-February 19)

By content type

See this member's

Sort by                Order  

#149088 Add form, add JS to field using its unique id

Posted by deWit on 05 April 2019 - 02:17 PM in Grocery CRUD Enterprise

I am trying to add a bit of JS to auto-complete some field. No big deal you'd say, a bit of ajax magic and a on.('change') coupled to the add field would do the trick.


I am stuck by accessing field in the add-form, in the free version these fields have an id= "field-your_field_name" attribute, but this is not the case in the enterprise edition that I am using. How to access these fields? Inspecting the 'add' form only shows fields like the following:

<input class="form-control" name="contactId" type="number" value="">

Ideally, these would contain an element like id="field-contactId" as well.