Default Value for Text Fields.

User 2126300 Photo


Registered User
14 posts

Is it possible to set a default value for text fields in Web Form Builder? I can manually edit the generated form afterwards to add default values, but it would make things easier if I could do this in Web Form Builder.

Thanks.
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Speed,

Can you be more specific on what values you're wanting to set? I'm assuming things like font, font size, font color, etc. If that's not what you mean let me know. If that is what you mean, there is a default setup for the main form setup on the Form Options page. These settings will trickle to all the elements unless you set the element custom. Once you do that it loses the default settings and you'll have to do them manually.

Let me and others know if that's the settings you're after or if you are after some other types of default settings.
User 187934 Photo


Senior Advisor
20,188 posts

Speed wrote:
Is it possible to set a default value for text fields in Web Form Builder? I can manually edit the generated form afterwards to add default values, but it would make things easier if I could do this in Web Form Builder.

Thanks.


It sure is. Click on the text box then on the properties tab enter the placeholder text.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

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 personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2126300 Photo


Registered User
14 posts

Eric Rohloff (Rolly) wrote:
It sure is. Click on the text box then on the properties tab enter the placeholder text.:)


So if the user then submits the form without entering any text into the fields but it has placeholder text, will the placeholder text then be submitted?

I'll explain what I'm using it for. I'm writing some backend processing systems in PHP, To test this code, I create forms to submit data to the systems. I'm using Web Form Builder to create these forms (which we call test harnesses). As there are so many fields used in the form, it's saves a lot of time and effort to have them pre-filled so testers don't have enter them in each time.
User 2126300 Photo


Registered User
14 posts

Speed wrote:
Eric Rohloff (Rolly) wrote:
It sure is. Click on the text box then on the properties tab enter the placeholder text.:)


So if the user then submits the form without entering any text into the fields but it has placeholder text, will the placeholder text then be submitted?

I'll explain what I'm using it for. I'm writing some backend processing systems in PHP, To test this code, I create forms to submit data to the systems. I'm using Web Form Builder to create these forms (which we call test harnesses). As there are so many fields used in the form, it's saves a lot of time and effort to have them pre-filled so testers don't have enter them in each time.


I tried using the Placeholder but this information is not submitted. What I need to be able to do is set the Value for each field.
User 464893 Photo


Ambassador
1,611 posts

I use php for post processing, but only when the form is for input only. I would like an ability to fill a form initially or supply values during a script action. One thing I do when I wish to populate a form first is: I create a form WFB makes it so easy. I then take a screen shot and use that to overlay a manually produced form. As it uses the magnificent ability of WFB to create such professional forms the result is perfect and it is easy just to drop the form elements in place. Then you have complete control over both input and output. I sometimes replace the forms receiving php file and handle the data myself as the action script ,as the values are posted as the names you set.
The Guy from OZ


User 695331 Photo


Registered User
14 posts

Speed wrote:
Speed wrote:
Eric Rohloff (Rolly) wrote:
It sure is. Click on the text box then on the properties tab enter the placeholder text.:)


So if the user then submits the form without entering any text into the fields but it has placeholder text, will the placeholder text then be submitted?

I'll explain what I'm using it for. I'm writing some backend processing systems in PHP, To test this code, I create forms to submit data to the systems. I'm using Web Form Builder to create these forms (which we call test harnesses). As there are so many fields used in the form, it's saves a lot of time and effort to have them pre-filled so testers don't have enter them in each time.


I tried using the Placeholder but this information is not submitted. What I need to be able to do is set the Value for each field.


I have the same problem—I want to submit the value of the placeholder as the default value and this does not happen. How can I create a default value?
User 187934 Photo


Senior Advisor
20,188 posts

You'll want to use php.
Here's how to set the current date into the form builders date field.
<input name="date" class="datepicker" id="item34_date_1" required type="text"
data-hint="" value="<?php echo date('m/d/Y'); ?>" />
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

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 personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 348342 Photo


Registered User
24 posts

Eric - i tried to set the date as per your example, it is set, but when the formbuilder displays - it displays a blank instead of the date in the field - what is happening?

I tried setting the value of other text fields and it works for them - but it appears the date picker clears the field on the display.
User 187934 Photo


Senior Advisor
20,188 posts

Is your server setup to parse php inside html?
Can you share a link?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

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 personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://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.