⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add form, add JS to field using its unique id



deWit
  • profile picture
  • Member

Posted 05 April 2019 - 14: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.