Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8281709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:07:41+00:00 2026-06-08T10:07:41+00:00

I have an e-commerce store that is being plagued with users selecting a shipping

  • 0

I have an e-commerce store that is being plagued with users selecting a shipping method that allows them to provide their own account number, then not providing an account number upon checkout.

FORM PART 1:

<dt>
<span class="Required FormFieldRequired" style="visibility: hidden">*</span>
<span class="FormFieldLabel">Shipping Account Number:</span>
</dt>
<dd>
<input class="FormFieldId" type="hidden" value="25">
<input class="FormFieldFormId" type="hidden" value="2">
<input class="FormFieldType" type="hidden" value="singleline">
<input class="FormFieldPrivateId" type="hidden" value="">
<input id="FormField_25" class="Textbox Field200 FormField" type="text" value="Fill This If Using Your Own Shipping Account" name="FormField[2][25]">
</dd>

FORM PART 2:

<span class="FormFieldLabel">Shipping Account Number:</span>
<dd>
<input class="FormFieldId" type="hidden" value="26">
<input class="FormFieldFormId" type="hidden" value="3">
<input class="FormFieldType" type="hidden" value="singleline">
<input class="FormFieldPrivateId" type="hidden" value="">
<input id="FormField_26" class="Textbox Field200 FormField" type="text" value="Fill This If Using Your Own Shipping Account" name="FormField[3][26]">
</dd>

Both of these are in 2 seperate divs on a PHP-generated page (PHP we have no control over), that each div they are in gets hidden as you press the "next" button, showing the div below.

Shipping is then selected via the following radio button:

<ul class="ShippingProviderList">
<li>
<label id="shippingMethod_500d6aa9a300e_1">
<input id="shippingCheck_500d6aa9a300e" type="radio" value="1" name="selectedShippingMethod[500d6aa9a300e]">
<span class="ShipperName">My Own Shipping Account (Please make sure that account number is specified within your account page or item will not ship!)</span>
<em class="ShipperPrice ProductPrice">$0.00</em>
</label>
</li>

The 500d6 snippet for the id’s are dynamically generated.

I need help designing a Javascript piece of code to put on this page so that if that radio circle is selected, and if neither of the shipping account number form fields have a shipping value, it simply hides the

<input type="submit" value="Continue">

button, if possible, replacing it with text saying whatever (I can customize).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:07:43+00:00Added an answer on June 8, 2026 at 10:07 am

    change <input type="submit" value="Continue"> to <input type="submit" id="btn" value="Continue" hidden > we will hide it by default (unless you are populating the form with php in which case you can do the check there to see if this is needed).

    var radio = document.getElementById('shippingCheck_500d6aa9a300e'),
        input1 = document.getElementById('FormField_25'),
        input2 = document.getElementById('FormField_26'),
        btn = document.getElementById('btn'); // yes you will need to add an identifier to the button itself. name or id would work. if name you would document.forms[frmName or 0 for the first form].elements[buttonName]
    
    document.forms[0].onchange = function() { // this assumes you have only one form. change the 0 to a name or proper index if need be.
        if( radio.checked && input1.value.length > 0 && input2.value.length > 0 ) {
            btn.hidden = false;
        } else {
            btn.hidden = true;
        }
    };
    

    I realize you do not control what the id values are… well then you will have to select by name or generate some of the js with php to hold these values.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an E-Commerce site that allows users to buy products, view their shopping
I have written a xml/php document that is pulling from a Magento Commerce database,
I have an online chair store which is using the open source e-commerce solution
I'm looking into building a web app that allows multiple e-commerce stores to coexist
I have some e-commerce code that I use often that uses Linq To SQL
I have a table with order information in an E-commerce store. Schema looks like
I have an E-Commerce Rails Application where we need to output Orders placed by
I have a really strange problem with SQL Server 2008. We have an e-commerce
Here is the thing. Right now I have this e-commerce web site where people
I have created a discount in commerce server, and linked it with a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.