Jump to content

How to delay form submission


Recommended Posts

i'm developing prestashop carrier module.inside mycarrier i have two radio buttons(`now`,`schedule`)
when user select `now` i,m getting current datetime.when user select schedule i'm prompt calender to pick datetime.

problem : 

when user select one of radio button,form will submit immediately.but i want form to wait until user pick date from calendar.

how can i delay my form submission?

 

<form class="clearfix" id="js-delivery"
     data-url-update="{url entity='order' params=['ajax' => 1, 'action' => 'selectDeliveryOption']}" method="post"
          >   
      <button type="submit" class="continue btn btn-primary pull-xs-right" name="confirmDeliveryOption" value="1">
              {l s='Continue' d='Shop.Theme.Actions'}
            </button>
    </form>

 

Screenshot from 2017-10-23 10-23-00.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...