3lvis / Form

The most flexible and powerful way to build a form on iOS

Home Page:http://hyper.no

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I choose id for each element?

hiren43 opened this issue · comments

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

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.