Viewing 1 replies (of 1 total)
  • in stripe-display this is how I made the name required;

    `jQuery(document).ready(function() {
    jQuery(“#ccg-stripe-payment-form”).submit(function(event) {

    jQuery(“.payment-errors”).hide();

    if(jQuery(‘#ccg-name’).val()==””){ //added to require name
    alert(“Please enter your name”);
    return false;
    }
    `
    note I added the id=’ccg-name’ to the name input html.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Stripe] How to make Another field 'Required'’ is closed to new replies.