Emails: Show label and value of field only if category is matching

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 6 months ago - 3 years 6 months ago #147121 by Patrick
Hello

I use custom fields. In configuration I have set up to assign these fields to categories instead of evens. I have seperate fields for most categories.

If I use [REGISTRATION_DETAIL] for confirmation messages and emails, the custom fields are showing correctly.

But to have better control of the layout I add fields manually. Example:

Mylabel for new field 1: [NEW_FIELD_1]
NEW_FIELD_1 is assigned to category "Cars".

This works.
But "Mylabel for new field 1" gets printend in all emails and all confirmation messages, even if an event is booked from other category.
If I book an event from caregory "Trains", where [NEW_FIELD_1] is not assigned, label "Mylabel for new field 1" still gets printed.

Is there a way to avoid this? In emails and confirmation messages I want to show custom fields only depending on their category.

So for example I'm thinking of something like this: {cars}Mylabel for new field 1: [NEW_FIELD_1]{/cars}

Is there a way to do so?
Thanks.
Parick

 
Last edit: 3 years 6 months ago by Patrick.

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

More
3 years 6 months ago #147122 by Tuan Pham Ngoc
Hello Parick

Please submit a support ticket so that we can give you a package to try. You can use the syntax below after updating:

{ebShowText [MAIN_CATEGORY_ID]=10}Mylabel for new field 1: [NEW_FIELD_1]{/ebShowText}

With that syntax, the field 1 above will only be shown if someone register for event belong to category with ID = 10

That could be a solution for your problem

Regards,

Tuan
The following user(s) said Thank You: Patrick

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 6 months ago #147126 by Patrick
Hello Tuan

I have opened the ticket.

Thanks a lot.
Regards
Patrick

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

More
3 years 6 months ago #147127 by Tuan Pham Ngoc
Hi Patrick

Just sent you the package via support ticket. Please update, try the suggested solution and update me with the resolution

Regards,

Tuan

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 6 months ago #147129 by Patrick
Hi Tuan

Great! Will do so!

Patrick

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 6 months ago #147131 by Patrick
Hello Tuan

Works fine!

I'll do more testing tomorrow and will give feedback again.

Regards
Patrick

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

More
3 years 6 months ago #147134 by Tuan Pham Ngoc
Great. Happy to hear that. Thanks Patrick for the info

Regards,

Tuan

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

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 6 months ago #147150 by Patrick
Hi Tuan

I now use seven custom fields in three categories.

I have added the new code to messages and emails.

It all works fine!

Will you include this new feature in future updates of EB?

Thanks a lot for your help.

Regards
Patrick
 

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

More
3 years 6 months ago #147151 by Tuan Pham Ngoc
Hi Patrick

Yes, the change will be included in future releases of Events Booking

Regards,

Tuan
The following user(s) said Thank You: Patrick

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

Moderators: Tuan Pham Ngoc