Thursday, 21 September 2017
  8 Replies
  1.5K Visits
0
Votes
Undo
Hi

I am trying to create conditional instructions.

I have a set of Radio buttons (Custom Fields). Depending on which of the Radio Button you chose, I want different instruction text to show up on the Event Detail Page. I can not figure out how to do this.

In the attached files you can see my setup, and based on this I would like to create my Custom Layout like:

{{intro:intro}}{{Priority Raw Value:Priority_raw}}{{introX Raw Value:introX_raw}}

Where X is the number from the CustomField I would like to show conditional based on the value of Radio Button. In the Detail Page attachment you might be able too see want I would like to achieve.

Best regards,
Ante
Friday, 22 September 2017 09:25
·
#193564
0
Votes
Undo
Hello,

At present this can only work on a Boolean condition field like a yes/no.

geraint is there any improvements you have made yet?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 25 September 2017 09:09
·
#193622
0
Votes
Undo
The conditions should work based on any radio box (not just yes/no boolean questions) - I just tested this with a radio selector and multiple instruction fields and it worked fine on my server.

Is it possible to give us the URL and login details on the private site details tab below so we can take a look at why this isn't working for you?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Monday, 25 September 2017 09:15
·
#193623
0
Votes
Undo
Hi

Thanks for reply.

Please see admin credentials in the private tab.

I believe the question is more of How do I present the conditional information (instructions) on the Detail page?

Best regards,
Ante
Monday, 25 September 2017 09:38
·
#193625
0
Votes
Undo
Ah - the instruction fields are designed for the event creation process to help the event creator.

You are looking for normal text fields that are output the the site visitor conditional on the value of another field?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Wednesday, 27 September 2017 10:44
·
#193781
0
Votes
Undo
Hi

I am trying to show different pre-written strings on the Event Detail Page, based on what Radio Button has been chosen.

My current setup is that I have four instruction fields with my pre-written strings, that should not be editable. Then I have one group with four Radio Buttons. Depending on which of the Radio Buttons is chosen during edit, the shown instruction field will be different.

Best regards,
Ante
Thursday, 28 September 2017 11:24
·
#193831
0
Votes
Undo
The best way to achieve this is via the layout editor (see https://www.jevents.net/frequently-asked-questions/event-detail-layout-editing) and using conditional output.

e.g. if your condition field is called show_text_field (with values 1,2,3 or 4) then you could include something like this in your layout

<div class="hiddentext text1_{{show text field:show_text_field}}">Text 1</div>
<div class="hiddentext text2_{{show text field:show_text_field}}">Text 2</div>
<div class="hiddentext text3_{{show text field:show_text_field}}">Text 3</div>
<div class="hiddentext text4_{{show text field:show_text_field}}">Text 4</div>

couple this with some custom CSS

.hiddentext {
display:none;
}
.hiddentext.text1_1, .hiddentext.text2_2, .hiddentext.text3_3 , .hiddentext.text4_4 {
display:block;
}

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

Monday, 02 October 2017 15:32
·
#193986
0
Votes
Undo
Hi Thanks for this.

Got it to work just as I want. :)

Two issue from which at least one could be considered as a bug... or not.

1. Whenever updating a custom value in a Custom Field, the changes does not seem to reflect on already created events, even if I update the event.

2. Whenever I added options to the Radio Buttons, all my already created events lost their chosen value. This was even when I made sure not to edit or change numbers for the options already available.

Best regards,
Ante
Tuesday, 03 October 2017 15:33
·
#194008
0
Votes
Undo
1. It wouldn't affect existing event since the value is locked in the time the event is created

2/ Did you change the values for the options? If you want to add new values then you should 'archive' the old values.

For your instructions - rather than using custom fields you could just use the layout editor by itself. If you give me the specific instructions you want to display and the associated field values I can give you more specific advice.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.