I have a dropdown field in a webform named "Order Type". When the value 'full' is selected from my "Order Type" dropdown field, I need another field named "Amount Due" to be populated with the value '$25' when the form is submitted.
I have the following code (which isn't working properly). I appreciate any help!
function getDeps()
{
var deps = document.getElementById("InsertRecordOrderType").value;
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
jayandang
I have a dropdown field in a webform named "Order Type". When the value 'full' is selected from my "Order Type" dropdown field, I need another field named "Amount Due" to be populated with the value '$25' when the form is submitted.
I have the following code (which isn't working properly). I appreciate any help!
function getDeps()
{
var deps = document.getElementById("InsertRecordOrderType").value;
if (deps == “Fullâ€)
{
document.getElementById("InsertRecordAmountDue").value="$25";
}
document.getElementById("caspioform").onsubmit=getDeps();
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.