Page 1 of 1

[SOLVED] FormBuilder: need to change the type of one field

Posted: Sun Jan 09, 2011 11:33 pm
by loukote
Hi.
I need to change the type of one field on a running form, ie. a form that already have responses on a live site. Can I change one field from Hidden to Text? What will happen to all the already saved responses? (The filed definition is a part of each response XML file in the DB.)
Thanks for your answers.

Re: FormBuilder: need to change the type of one field

Posted: Wed Jan 12, 2011 11:38 am
by RytoEX
At the moment, I do not believe there is an easy way to do this. May I ask, why do you need to change the field from Hidden to Text?

Re: FormBuilder: need to change the type of one field

Posted: Wed Jan 12, 2011 8:14 pm
by loukote
RytoEX wrote:At the moment, I do not believe there is an easy way to do this.
RytoEX, thanks for your answer.
RytoEX wrote:May I ask, why do you need to change the field from Hidden to Text?
Before the possibility to call a UDT and to show a result to the user I needed to perform a calculation based on the entered values and selected checkboxes. Since the users can be trusted (no wanted mis-use) javascript was the option and the results have been assigned to the values of the hidden fields.

All good until this version -- the way the data is stored has completely changed with the new version (XML in a DB field for each response) and so it is much more difficult to update these responses via an interface that i programmed (because it is impossible to edit the values of the hidden fields in the admin interface; why? what are they used for?)

Do you see another way to do what i need?

Re: FormBuilder: need to change the type of one field

Posted: Wed Jan 12, 2011 8:37 pm
by RytoEX
I'm sorry, but I don't think that I understand what it is that you're trying to do.

However, in response to...
loukote wrote:because it is impossible to edit the values of the hidden fields in the admin interface; why? what are they used for?
I assume that you mean Bug 1822? A patch was applied to Form Builder in SVN that allows the editing of Hidden Fields in the Admin Form Browser interface. I do not know when a new version will be officially released, but you could try the SVN version and see if that solves your problem.

Re: FormBuilder: need to change the type of one field

Posted: Wed Jan 12, 2011 8:52 pm
by loukote
RytoEX wrote:I'm sorry, but I don't think that I understand what it is that you're trying to do.

I assume that you mean Bug 1822?
Well, you probably remember you submitted the patch (8/2010), while i don't have a clue that i submitted the bug (9/2007) ;)

Thanks for the solution! I hurry to test it.

Re: FormBuilder: need to change the type of one field

Posted: Fri Feb 25, 2011 11:09 am
by RytoEX
If you needed the ability to edit hidden fields, those changes are in the recently released Form Builder 0.7 and Form Browser 0.4. If these solve your problem, please let us know, and don't forget to add "[SOLVED]" to the thread title.

Re: FormBuilder: need to change the type of one field

Posted: Fri Feb 25, 2011 11:21 am
by loukote
RytoEX wrote:If you needed the ability to edit hidden fields, those changes are in the recently released Form Builder 0.7 and Form Browser 0.4. If these solve your problem, please let us know, and don't forget to add "[SOLVED]" to the thread title.
Yes, it did solve the issue. Thak you!

Re: [SOLVED] FormBuilder: need to change the type of one fie

Posted: Fri Feb 25, 2011 12:11 pm
by RytoEX
You're welcome! Glad to be of help!