Jump to content


Add form, add JS to field using its unique id


  • Please log in to reply
No replies to this topic

#1 deWit

deWit

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 05 April 2019 - 02:17 PM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users