Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

How do I choose id for each element? #581

Open
hiren43 opened this issue Aug 17, 2017 · 1 comment
Open

How do I choose id for each element? #581

hiren43 opened this issue Aug 17, 2017 · 1 comment

Comments

@hiren43
Copy link

hiren43 commented Aug 17, 2017

I just encountered a problem for elements having same id won't work. So far I was using id name same as title which user decides. But giving same title in both elements, former element interaction is not possible in this library. This information will not be entered by users. We developers have to choose unique id for all elements. So can I use numbers starts from 1 as id for all elements like 1 for first element and 2 for second element and so on.
Please advise me on this as soon as possible. Thank you

@hiren43 hiren43 changed the title How do I choose id for every elements? How do I choose id for each element? Aug 17, 2017
@3lvis
Copy link
Owner

3lvis commented Aug 17, 2017

Hi @hiren43,

The recommended id for elements is composed of the section and the title of the field. For example, you could have several sections with the field name.

  • ID personal-details.first_name (Your first name)
  • ID partnership-details.first_name(your wife or husbands first name)

I hope that's clear enough :) Let me know if I can help with anything else.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants