92 Posts
Seb
7 years ago
3
Topic

Hi,

It's possible to use condition in email field?

Example : 

Field A

check box : value = 1 or value = 2

Field B

Field type text = my text 1

Field C

Field type text = my text 2

If check box value = 1, I use "my text 1" in my mail message

If check box value = 2, I use "my text 2" in my mail message

Thanks for your reply!

Seb

 

Get a VIP membership
1283 Posts
Bucklash
7 years ago
0
Level 1

Hi

Have you tried including both fields to email and then 

in conditional of field_1 have is disabled if field_abc is equal 1 etc

ps

never tried conditionals on fields that are used in an email field, so just guessing.

Other option could be two email fields.... 

92 Posts
Seb
7 years ago
1
Level 1

Hi,

Thank you Bucklash for your reply. Yes I try with conditional field. But if field 1 is disabled Its value appears in email message...

it isn't logical.

While the value should not appear if the field is disabled, it seems to me.

For now I use several email fields. However, it would be more logical to change only one variable rather than one whole message.

I am looking for a solution :-)

Thanks,

Seb

4229 Posts
Kadministrator
7 years ago
0
Level 2

Alternatively you could use afterRender event to remove unwanted fields before they are sent in email.

Get a Book for SEBLOD