TOPIC:

Conditional Field with info required 1 year 1 month ago #236482

  • Topic Author
  • Cpointcc
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 129
  • Thanks: 0
I am looking to have an option field for phone or email. If choice is phone, then a text box appear to include phone number.

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

Conditional Field with info required 1 year 1 month ago #236489

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

That can be easily done.

You can either create your form with both a field to enter email and a field to enter the phone. Then you would use a custom validation script which would check whether at least one of these fields is filled in.

Another option if you wish for the phone field to show if a checkbox is checked, you could use visibility rules to show/hide the text box to include a phone number as explained here crosstec.org/en/support/online-documenta...f-conditionally.html .

In that case, you can just set validation script FF::ff_valuenotempty for this textfield form elements crosstec.org/en/support/online-documenta...g-form-elements.html .

It would be required only if it is turned on in the moment of submitting.

Let me know whether you have managed to set this for your form.
If you have more questions regarding this feel free to ask.

Regards,

Mihaela

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

Conditional Field with info required 1 year 1 month ago #236504

  • Topic Author
  • Cpointcc
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 129
  • Thanks: 0
I am still having trouble. I have the fields set up based on the first link above. However, it isn't opening up the phone text box if you choose the phone option. (I actually imported the test file that was the example).

Do I need to set the valuenotempty

www.peru.il.us/askthecity

Visibility rules:

turn on element bfQuickMode4241733 if bfQuickMode72431 is on
turn off element bfQuickMode4241733 if bfQuickMode72431 is off

See attached screenshots.


Clearly I'm missing something...

I appreciate your help and feedback!
Attachments:

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

Conditional Field with info required 1 year 1 month ago #236533

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

I see where is the problem. You haven't written the visibility rules correctly for your case.

Please use this visibility rules instead:
turn off element bfQuickMode4241733 if bfQuickMode72431 isnot phone
turn off element EMAILFIELDNAME if bfQuickMode72431 isnot email

turn on element bfQuickMode4241733 if bfQuickMode72431 is phone
turn on element EMAILFIELDNAME if bfQuickMode72431 is email
JUST replace EMAILFIELDNAME with the Name of the email field.

The FF::ff_valuenotempty script you need to set for validations of the phone and email fields if you want them to be required.

Let me know whether it works after this changes.

Regards,

Mihaela

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

Conditional Field with info required 1 year 1 month ago #236541

  • Topic Author
  • Cpointcc
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 129
  • Thanks: 0
Yes, that is perfect!

There is a small problem. The response is not showing up on the mailback or in the database.

My question: I don't understand why you have to add the extra is not phone, is not email if the field name is already there.

Please advise.

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

Last edit: Post by Cpointcc.

Conditional Field with info required 1 year 1 month ago #236544

  • Topic Author
  • Cpointcc
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 129
  • Thanks: 0
Hello,

This is working fine now on the front, but the email back form is not working. It doesn't show the field data in the email or in the database. Here are my settings on the email:

Follows is a recent inquiry from the Ask the City from the website

{bfQuickMode67034:label}:  {bfQuickMode67034:value}

{bfQuickMode2771689:label}:

{bfQuickMode2771689:value}

From:{bfQuickMode1597386:label}:  {bfQuickMode1597386:value}

{bfQuickMode5956614:label}:  {bfQuickMode5956614:value}

{bfQuickMode4931602:label}:  {bfQuickMode4931602:value}

{bfQuickMode72431:label}: {bfQuickMode72431:value}

{bfQuickMode4241733:label}:  {bfQuickMode4241733:value}

{bfQuickMode6990604:label}:  {bfQuickMode6990604:value}

Please respond to your inquiry as quickly as possible.


Please advise on how to make that show up.

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

Moderators: ForumSupport
Time to create page: 0.166 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!