Default Value for Inputs?


Registered User
10 posts

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


Senior Advisor
17,640 posts
Online Now

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


Registered User
1,449 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


Senior Advisor
17,640 posts
Online Now

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


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.