3lvis / Form

The most flexible and powerful way to build a form on iOS
http://hyper.no
Other
1.64k stars 145 forks source link

How to create form templates which creates JSON? #577

Open hiren43 opened 7 years ago

hiren43 commented 7 years ago

This library is helpful for reading JSON and building form UI. I want to allow users to create form templates which creates JSON, then the JSON is used using this library. So is it possible using this library? Is there any library for this to create form templates?

3lvis commented 7 years ago

Hi @Hiren43,

Back when we were creating this app we thought about something like what you are mentioning, in the end we ended up for discarding the idea but I think it would be really useful. Sadly, we don't have anything like it but if you go for it let us know!

hiren43 commented 7 years ago

Thanks for your reply. I'm trying to create JSON which matches your syntax of JSON file. Is there any way I can ignore group which allows feature of collapsing data? If I don't write group in JSON, your code is not working. I would like to start with sections only.

3lvis commented 7 years ago

Hi @hiren43,

Check the LoginDemo -> https://github.com/hyperoslo/Form/tree/master/LoginDemo

Should be an example of dropping the grouping and using only fields.

hiren43 commented 7 years ago

Hi @3lvis I will look for that demo. Is there any way I can use UITextView. I'm not able to find in your library. How could you skip that? Its so important to give multiline textfield in forms. Please reply ASAP. Thanks

3lvis commented 7 years ago

@hiren43 we don't have support for UITextView it's something you would have to add as a custom field.

hiren43 commented 7 years ago

Hi @3lvis Is there any attribute for type 'date' which can show default value? And any component which allows one to choose more than one items just like checkbox?

3lvis commented 7 years ago

@hiren43 We have a date field but I don't think it supports default values. We don't have a multi select field but we've been discussing making one in https://gitter.im/hyperoslo/Form

hiren43 commented 7 years ago

@3lvis I think it will be really helpful to everyone if there will be multiple choices with a switch to toggle on/off. Looking forward to it. Thanks

3lvis commented 7 years ago

@hiren43 This library is in maintainance mode, sadly new features will have to come in the form of external contributions.

hiren43 commented 7 years ago

@3lvis HI. I'm doing great with this library. But we are trying to develop same application in Android as well. So we are looking for same/similar library which can accept same JSON data to create form. If you know about Android library, please do tell me.

3lvis commented 7 years ago

Hi @hiren43 I haven't seen an Android version of Form but if you do find or make one, please let me know!