Registration form

Wondering if anyone has run into this before.

I have a registration form which includes a checkbox agreeing to membership terms.

I am wondering if there is a way to force an expired member to have to refill out that form and or re-agree to the terms.

Has anyone run into this before or does anyone have ideas as to a workaround?

Thanks!!

Hello,

could you not just add a required check box to the user upgrade form?

The payment pro-form wouldn’t force the required profile fields for an existing user to upgrade…

What you could do to achieve this, though, would be having a check before showing the pro-form, and if that required field is not filled, then show him the profile form to update it first.

You’d need a bit of PHP to check that field, the simple shortcode conditional would not be enough…

If you have s2Member Pro, s2If’s php attribute could work (you have to whitelist the functions you need). WP Admin > s2Member Pro > Restriction Options > Simple Shortcode Conditionals > Arbitrary PHP

Maybe something like:

[s2If php="empty(get_user_field('my_terms_field'))"]
You have to agree the Terms & Conditions first.
[s2Member-Profile /]
[else]
[s2Member-Pro-Stripe-Form ... /]
[/s2If]

(not tested)

https://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()

:slight_smile: