Possible to change required based on another field

12 years 11 months ago #42961 by dping28
I was wondering if its possible to have a Country field and based on its selection (anything but United States) remove the required tag off of the zipcode and state field? thanks!

-D

-D

CB Testteam member

Please Log in to join the conversation.

12 years 11 months ago #43322 by beat
not without a plugin, maybe the conditions plugin could do the job :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

12 years 11 months ago #43354 by mikko
Conditions plugin cannot do this and plugin API does not provide a way to turn off required fields check for particular fields in CB. If you really want to do this, you could make a plugin, which would:
-insert some data to required fields before the user profile is created so that CB checks do not fail
-remove this data from the profile immediately after registration

Extended Selects plugin uses something similar to this to go around field value validity check.

This would be an ugly hack though.

-Mikko

Please Log in to join the conversation.

12 years 11 months ago #43360 by dping28
That might be a little over my head right now, think I will just leave them optional for the time being ;) thanks for the replys :)

-D

CB Testteam member

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.405 seconds

Facebook Twitter LinkedIn