Default Value for Inputs? - Post ID...

User 2896724 Photo


Registered User
10 posts

Hello, how do you add a default value for input forms?
User 187934 Photo


Senior Advisor
18,063 posts

Hi Michael,
Add the value attribute to your input.
value="My 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
http://ericrohloff.com/property/
User 2699991 Photo


Registered User
1,701 posts

Eric Rohloff wrote:
Hi Michael,
Add the value attribute to your input.
value="My Value"


Eric,, is that after exporting ? I can't seem to find the attribute "value"
The Sky Is A big Empty Space : But There Is No Room For Error
website https://rsdtutorials.com
User 187934 Photo


Senior Advisor
18,063 posts

Yes, otherwise add this to the footer with RSD.
$(function () {
$("input[name='myinputname']").val("myvalue");
});
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
http://ericrohloff.com/property/
User 2896724 Photo


Registered User
10 posts

Thanks, the script worked after I put it in <script> tags. It seems strange that RSD wouldn't have that as an option without JAVA script.

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.