MySQL data read back into Form builder to populate fields - Page 1


Registered User
25 posts

I would like to see Web Form Builder have the capability to take a form that you created and then be able to prepopulate fields from the database right back into the form. So you can review records. Have forms that prepopulate or populate after a trigger is entered in a field.

The problem I have now is I built a page that you enter basic "daily" info that changes by the hour. It would be great if I can go to the form and it displays the last entries made into the fields on that form.
Why sleep when I can work...

"I told my son my car was a race car... He paused, thought then asked.."Than why does it have a radio?"


Senior Advisor
17,825 posts
Online Now

You can do this yourself with a little coding.:cool:.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
25 posts

I can. And I do. The hassle is if I make changes to the form, I have to redo all the SQL code again. I want it in the program so I can worry about other things. Just being lazy....:)
Why sleep when I can work...

"I told my son my car was a race car... He paused, thought then asked.."Than why does it have a radio?"


Senior Advisor
17,825 posts
Online Now

If I make a change to the form I do the opposite and grab the changed part form the newly exported form and place it in the old one. Then save the old one over the top of the new one and then publish. Makes for way less work.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
25 posts

That's what I do also. Agreement! But I do not want to do it manually....
The change I am proposing is while you are building your form in Form Builder you can go to form preference's and click on "Connect to MySQL" and enter the login information. Much the same way we do to setup saving the form data to MySQL currently. Then while you are working on your form and you add a form field lets say. You can select an option to "link" to and pull the data to that field from a database record field from the feed table side. This could not be too hard to add to Form Builder at this point.
Why sleep when I can work...

"I told my son my car was a race car... He paused, thought then asked.."Than why does it have a radio?"


Senior Advisor
17,825 posts
Online Now

I have been able to relieve some of the pain by using an html element and use classes and id's similar to the form builders to include <?php include('mypage.php');?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
10 posts

Can you guys give me some help, I have a change of address form that I want to have the old address fields as read-only and populate the form from an exist SQL database variable?

Cheers
Chris


Senior Advisor
17,825 posts
Online Now

Add the readonly attribute to the input
<input type="text" name="text1" value="<?php include('mypage.php');?>" readonly>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com


Registered User
10 posts

So do you just echo the variable in the php file?

Thanks

Chris


Senior Advisor
17,825 posts
Online Now

The php file will have your mysql connection and necessary code to extract the wanted value.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://progrower.coffeecup.com/shop/
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personnel site used for testing and as an easy way to share photos.(RLM imported to RSD)
http://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.