Lombiq/DotNest-Support

Date time field in dynamic forms

Closed this issue · 0 comments

By kotor, Thursday, January 5, 2017 8:22:46 PM
The date time field works from admin screen. You get a nice looking control to pick up date. How to use in Dynamic forms in front end screen ?

Similar issue with Media upload. How to use in Dynamic Forms ?

By Zoltán Lehóczky, Friday, January 6, 2017 12:19:28 AM
Unfortunately it's not possible at the moment to use content fields (or anything from content item editors) with Dynamic Forms. The other way around is supported, i.e. you can build a form with Dynamic Forms and bind it to a content type's fields and parts so the form submissions will created content items.

By kotor, Friday, January 6, 2017 6:48:39 PM
Yes, I am doing this, but the user won't have a nice looking datetime picker control. You just have a textbox to enter the date. Any other solution ?

By Zoltán Lehóczky, Friday, January 6, 2017 7:38:36 PM
That's right, you won't be able to use the date picker directly...

However do you know that on DotNest you can write themes? https://dotnest.com/knowledge-base/topics/theming/writing-a-dotnest-theme-from-scratch You could inject some JS to add a datepicker or ultimately you can override how that text field is rendered with a Liquid template (and add a datepicker from there).