Page 1 of 1

Convert to Form - with checkbox objects

Posted: Wed Apr 12, 2017 10:22 pm
by alex4orly
Friends,

I have experienced lately a long saga after converting a form (using - Convert to form) on the Edit Profile object of the "Login" set of tools in this wonderful WWB package.

The problem I had was in that - on the base objects I added some "Collection" input fields, but when converted, all my "Checkbox" type fields turned into TEXT fields and lost their main purpose.

Well, here are the steps you have to go through in order to retain the intended original structure:

1) Note the object id value, then remove the text fields (those that were originally of type Checkbox). For example, if the field id is "extra7" be sure to record it.
2) After you have removed all those text fields, insert manually new Checkbox objects into the same required places on your form, make sure you assign all of them the same original object ID (so that it matches the database fields).
3) Go into the "Value" item in the Properties and type in there the word "checked" - without the double quotation marks.
4) Right click the checkbox object, select "Object HTML" and once it comes up - click the "Inside Tag" and enter in there the PHP activation - for example : <?php echo $db_extra7; ?> make sure to have a space before the opening left hand side marker
5) Repeat all steps for all checkbox objects

Good luck

Maybe Pablo will consider adding this into the Help document?

Re: Convert to Form - with checkbox objects

Posted: Thu Apr 13, 2017 5:43 am
by Pablo
Thanks for sharing this info!

Re: Convert to Form - with checkbox objects

Posted: Fri Apr 14, 2017 10:01 am
by Biju
But for me checkbox stays as checkbox itself after converting to form...

Re: Convert to Form - with checkbox objects

Posted: Fri Apr 14, 2017 10:05 am
by alex4orly
I wonder. Maybe Pablo can explain this....
Cheers

Re: Convert to Form - with checkbox objects

Posted: Fri Apr 14, 2017 10:53 am
by Pablo
The latest update adds support for checkbox conversion.