Form builder - changing field type: improvment

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Form builder - changing field type: improvment

Jarosław Kowalewski
Hi,
just let assume form's author case:
1. create control type select1
2. change type to input type

now you have to delete control and add a new one. 

It would be nice to have the possibility just to change type without adding again label, hint, validation and formulas.  
The case is valid also for select and for conversion from input/output/textarea. 

I suppose it will be nice to just to have option migrate control type 'on the fly'.

//Jarek

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcWpJ6EdX87tYsD5qPr2vWPUuPRzonScA6epNF5qiLMFmw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form builder - changing field type: improvment

Alessandro  Vernet
Administrator
Hi Jarek,

We'd like to allow the control "type" to be changed between "related"
control types, say between a number field and a currency field. We do have a
request for enhancement for this (#2412 linked below). Would this work for
what you have in mind, or would you prefer something different?

https://github.com/orbeon/orbeon-forms/issues/2412

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1576540236201-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Form builder - changing field type: improvment

Jarosław Kowalewski
Hi Alex,
not exactly. I would like to switch between not similar types like input and select. 
Case: 
1. The client wants to have input with label, hint etc.
2. the same client just changes the mind and want to have select with options

I need to delete old control and add new one with additional work.
In the code I just have to change xf:input to xf:select1 and add itemset. In the opposite direction it is even easier. Just change xf:select to xf:input and that's it. Ok. you can think about removing xf:itemset and dictionary but without it form still works. 

You can consider some purge option e.g. when form is published all irrelevant elements are removed from source code?

//Jarek


wt., 17 gru 2019 o 00:43 Alessandro Vernet <[hidden email]> napisał(a):
Hi Jarek,

We'd like to allow the control "type" to be changed between "related"
control types, say between a number field and a currency field. We do have a
request for enhancement for this (#2412 linked below). Would this work for
what you have in mind, or would you prefer something different?

https://github.com/orbeon/orbeon-forms/issues/2412

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1576540236201-0.post%40n4.nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcVbMingbh1caK7z3%3D_3MScc8yqPpGgw3vwgYz_BvashGw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Form builder - changing field type: improvment

Alessandro  Vernet
Administrator
Hi Jarek,

Got it, and this makes sense. So we updated #2412 to a encompass this more
general use case. Thank you for the feedback!

https://github.com/orbeon/orbeon-forms/issues/2412

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1576792474269-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet