By msmarie on Friday, 06 December 2013
Posted in Pre-Sales
Replies 5
Likes 0
Views 2K
Votes 0
Is there a setting so that fields that are left empty, or select-lists that are unchanged, do not display at all? (Label and contents are suppressed.)

Thank you.
Yes - there is a club member article that describes how to set up your layout for this sort of conditional output. http://www.jevents.net/jevents-15-topme ... ing-values
·
Friday, 06 December 2013 09:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Geriant,

After reading the article you provided I am not able to get things to work. I think I am doing this is the correct place. I am currently editing in the JEvents Custom Layouts->Event Detail Page.

My custom fields are set up and working. I've tried getting the example on the page to work using a field of mine called 'registrationInfo'. If there is information then I want the field to display. Here is what I have...
{{registrationInfo:registrationInfo#Registration info is %s#No Registration info}}

However nothing shows up, even when there is info.

My ultimate goal however is to get the 'registrationInfo' field to display only if a boolean field called "registration' is checked to 'Yes'. I am not seeing an example on how to do this, could you provide me with one? Or a link? I've been searching with no luck.

Final question, I assume the %s is for string, what if I am using an html field?
·
Tuesday, 07 January 2014 05:51
·
0 Likes
·
0 Votes
·
0 Comments
·
%s is to substitute the string value (even if its HTML it should work) and is used by the php function sprintf so in theory this would allow formatting of dates and numbers too.

Did you enable you layout after editing it (make sure there is a green tick in the list of layouts).
·
Tuesday, 07 January 2014 08:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for the delayed response.

Yes, the layout is enabled. I am able to change the layout using the field dropdowns like normal. Just having trouble getting this conditional statement to work.
·
Wednesday, 08 January 2014 21:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you send me login details via PM so I can take a look for you?
·
Thursday, 09 January 2014 09:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post