latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

repopulate signup values on error

Home Forums Community Forum repopulate signup values on error

This topic contains 2 replies, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Wednesday Feb 13th, 2013 at 12:39 pm #41614

Are there any working code examples of a Paypal Pro sign up page that repopulates the form values on error(missing field or something).

I have been trying to use:

$firstname = $_POST[‘s2member-pro-paypal-checkout-first-name’];

and then:

<input type="text" aria-required="true" maxlength="100" autocomplete="off" name="s2member_pro_paypal_checkout[first_name]" id="s2member-pro-paypal-checkout-first-name" class="s2member-pro-paypal-first-name s2member-pro-paypal-checkout-first-name" value=" <?print $firstname ?>” tabindex=”10″ />

…welp

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Thursday Feb 14th, 2013 at 1:08 pm #41706

Should the values repopulate by default?

Posted: Friday Feb 15th, 2013 at 6:52 am #41842
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

If a Pro Form is submitted, but there is an error, the fields that have already been filled in will be repopulated automatically. So no need to hack this in. It’s already built into the Pro Form integration.

If you were doing something like this, you would need to reference the array key.

$firstname = $_POST['s2member_pro_paypal_checkout']['first_name'];
Viewing 2 replies - 1 through 2 (of 2 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.