TOPIC:

List and visibility rules 2 weeks 3 days ago #250456

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 98
  • Thanks: 0
Hi!

I have a list field like this so that "Other" shows the "OBS:" field

0;;
0;Apartment;off
0;House;off
0;Tent;off
0;Room;off
0;Other;on

So far so good but the problem is that the email recieved shows the value "off" or "on" and not the type field that is important.

please help

Tx in advance

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

List and visibility rules 2 weeks 3 days ago #250457

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 475
  • Karma: 4
  • Thanks: 80
Hello,

Try this.

Your list options:
0;;
0;Apartment;Apartment
0;House;House 
0;Tent;Tent
0;Room;Room
0;Other;Other

Your visibility rules:
turn off element OBS if ListName isnot Other
turn on element OBS if ListName is Other

Replace ListName Witherspoon the real name of your select list.

Regards,
Eddy
The following user(s) said Thank You: Luisserafim

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

Last edit: Post by Eddy.vh.

List and visibility rules 2 weeks 3 days ago #250458

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 98
  • Thanks: 0
Can we make groups in visibility settings?

I have a form that you can chose the number of kids. so, 1 kid more 7 fields, 2 kids shows the first 7 and 7 more.

This is the code:

List:
0;0;defoff
0;1;defon1
0;2;defon2


visibility settings:
turn off element nome61 if qeafpd61 is defoff
turn off element pi61 if qeafpd61 is defoff
turn off element mental61 if qeafpd61 is defoff
turn off element motora61 if qeafpd61 is defoff
turn off element visual61 if qeafpd61 is defoff
turn off element auditiva61 if qeafpd61 is defoff
turn off element outra61 if qeafpd61 is defoff

turn off element nome62 if qeafpd61 is defoff
turn off element pi62 if qeafpd61 is defoff
turn off element mental62 if qeafpd61 is defoff
turn off element motora62 if qeafpd61 is defoff
turn off element visual62 if qeafpd61 is defoff
turn off element auditiva62 if qeafpd61 is defoff
turn off element outra62 if qeafpd61 is defoff

turn on element nome61 if qeafpd61 is defon1
turn on element pi61 if qeafpd61 is defon1
turn on element mental61 if qeafpd61 is defon1
turn on element motora61 if qeafpd61 is defon1
turn on element visual61 if qeafpd61 is defon1
turn on element auditiva61 if qeafpd61 is defon1
turn on element outra61 if qeafpd61 is defon1

turn on element nome61 if qeafpd61 is defon2
turn on element pi61 if qeafpd61 is defon2
turn on element mental61 if qeafpd61 is defon2
turn on element motora61 if qeafpd61 is defon2
turn on element visual61 if qeafpd61 is defon2
turn on element auditiva61 if qeafpd61 is defon2
turn on element outra61 if qeafpd61 is defon2

turn on element nome62 if qeafpd61 is defon2
turn on element pi62 if qeafpd61 is defon2
turn on element mental62 if qeafpd61 is defon2
turn on element motora62 if qeafpd61 is defon2
turn on element visual62 if qeafpd61 is defon2
turn on element auditiva62 if qeafpd61 is defon2
turn on element outra62 if qeafpd61 is defon2

Can we simplify this? is there other way to doit???

Thanx in advance

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

Last edit: Post by Luisserafim.

List and visibility rules 2 weeks 3 days ago #250462

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 475
  • Karma: 4
  • Thanks: 80
Hello,

Yes, you can place your groups of elements in sections and base your visibility rules on these sections.

Section 1:
  • field 1
  • field 2
  • Field 3
  • etc.

Section 2:
  • field 8
  • field 9
  • Field 10
  • etc.

Visibility rules:
turn off section nameOfSection1 if ListName isnot #defon1|defon2
turn off section nameOfSection2 if ListName isnot #defon2

turn on section nameOfSection1 if ListName is #defon1|defon2
turn on section nameOfSection2 if ListName is #defon2


ℹ️ Replace nameOfSectionX with the real name (not title) of your section.
ℹ️ Replace ListName with th real name (not title) of your select list.

To find out everything about the BreezingForms Visibility Rules, read this article , it details everything you need to know.

Regards,
Eddy

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

Last edit: Post by Eddy.vh.

List and visibility rules 2 weeks 2 days ago #250468

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 98
  • Thanks: 0
Thanx so much!

My code is not working, can you help please?

I tried 2 ways but ...

List:
npaf31
0;;0
0;1;1
0;2;2
0;3;3
0;4;4
0;5;5
0;6;6
0;7;7
0;8;8
0;9;9

visibility rule:
turn on section agregado2 if npaf31 is 2;3;4;5;6;7;8;9
turn on section agregado3 if npaf31 is 3;4;5;6;7;8;9
turn on section agregado4 if npaf31 is 4;5;6;7;8;9
turn on section agregado5 if npaf31 is 5;6;7;8;9
turn on section agregado6 if npaf31 is 6;7;8;9
turn on section agregado7 if npaf31 is 7;8;9
turn on section agregado8 if npaf31 is 8;9
turn on section agregado9 if npaf31 is 9

turn off section agregado2 if npaf31 isnot 2|3|4|5|6|7|8|9
turn off section agregado3 if npaf31 isnot 3|4|5|6|7|8|9
turn off section agregado4 if npaf31 isnot 4|5|6|7|8|9
turn off section agregado5 if npaf31 isnot 5|6|7|8|9
turn off section agregado6 if npaf31 isnot 6|7|8|9
turn off section agregado7 if npaf31 isnot 7|8|9
turn off section agregado8 if npaf31 isnot 8|9
turn off section agregado9 if npaf31 isnot 9

Or

turn on section agregado2 if npaf31 is ![2-9]$
turn on section agregado3 if npaf31 is ![3-9]$
turn on section agregado4 if npaf31 is ![4-9]$
turn on section agregado5 if npaf31 is ![5-9]$
turn on section agregado6 if npaf31 is ![6-9]$
turn on section agregado7 if npaf31 is ![7-9]$
turn on section agregado8 if npaf31 is ![8-9]$
turn on section agregado9 if npaf31 is 9

turn off section agregado2 if npaf31 isnot ![2-9]$
turn off section agregado3 if npaf31 isnot ![3-9]$
turn off section agregado4 if npaf31 isnot ![4-9]$
turn off section agregado5 if npaf31 isnot ![5-9]$
turn off section agregado6 if npaf31 isnot ![6-9]$
turn off section agregado7 if npaf31 isnot ![7-9]$
turn off section agregado8 if npaf31 isnot ![8-9]$
turn off section agregado9 if npaf31 isnot 9

In the 2 ways only 9 works...

Please help

Thanxs in advance

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

List and visibility rules 2 weeks 2 days ago #250469

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 475
  • Karma: 4
  • Thanks: 80
You must write your rules correctly.

Do not use ; where it takes | and in case of multiple choice, use # at the beginning of the value

If listvalue is(isnot) #2|3|4|etc.

Reread the article carefully. It's all there and I really can't help you better than this article.

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

  • Page:
  • 1
Time to create page: 0.034 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

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!