Skip to Content Skip to Menu

🏖 Summer sale is almost over! Get 20% off professional and developer memberships with code SUMMER-2026!

Enforce New Required Field on Membership Renewal

  • krileon
  • krileon
  • ONLINE
  • Posts: 50676
  • Thanks: 8687
  • Karma: 1474
3 months 2 weeks ago - 3 months 2 weeks ago #343903 by krileon
I was understanding it that you don't want any of those fields to be empty. So you're wanting to check that at least 1 has a value? If you use OR you'll have to duplicate the 2 AND conditions already supplied because it groups the entire AND blocks together. It works like the following.

( CONDITION_1 -AND- CONDITION_2 ) OR ( CONDITION_3 -AND- CONDITION_4 )

So another way to keep this simple is by stacking substitutions. The below for example should do that.

Field: Custom > Value
Custom Value: [field_name_1][field_name_2][field_name_3]
Operator: Is Empty

Replace field_name_1, field_name_2, and field_name_3 with the actual names of your fields. If none of them have a value the redirect should then apply.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 3 months 2 weeks ago by krileon.

Please Log in or Create an account to join the conversation.

  • petekuhn
  • petekuhn
  • OFFLINE
  • Posts: 282
  • Thanks: 39
  • Karma: 0
3 months 2 weeks ago #343913 by petekuhn
Thanks. I didn't explain it well.

What I want is to trigger if any of them doesn't have a value. You first suggestion triggers is none of them has the value (if I parsed it correctly).

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50676
  • Thanks: 8687
  • Karma: 1474
3 months 2 weeks ago #343914 by krileon
Only way to do that is OR conditions. So you'll need to make more OR rows, add the 2 AND conditions that I've already added for you, then add a 3rd AND condition to each OR row checking your fields. This should result in the following.

( PLAN_ID_CONDITION -AND- PLAN_ACTION_CONDITION -AND- FIELD_1_CONDITION )
OR
( PLAN_ID_CONDITION -AND- PLAN_ACTION_CONDITION -AND- FIELD_2_CONDITION )
OR
( PLAN_ID_CONDITION -AND- PLAN_ACTION_CONDITION -AND- FIELD_3_CONDITION )

This can be simplified to the following though.

( PLAN_ID_CONDITION -AND- PLAN_ACTION_CONDITION -AND- FIELDS_CONDITION )

It however requires using a Code condition and utilizing PHP. The below should work.

Field: Custom > Code
Custom Code:
Code:
if ( ! $user->get( 'field_1_name_here', '' ) ) { return 1; } if ( ! $user->get( 'field_2_name_here', '' ) ) { return 1; } if ( ! $user->get( 'field_3_name_here', '' ) ) { return 1; } return 0;
Operator: Equal To
Value: 1

Add as many field checks there as needed. Both should accomplish what you're wanting so feel free to use whichever method feels more comfortable to you.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum