Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
See pages that link to and include this page.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.
Hey Steven,
You can already do this, using a similar technique to what you are requesting:
If the field contains data, then the 'empty' class does not exist and therefore the div block will be displayed to the user.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
I know…. But imagen you have a title that should be shown if one of a group of fields is not empty? With the 1 and 0 you always have a value, with your technique you only have a value if the form is filled… And there is no way in predicting the value of the field so I cant create a css class name to display.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Could you give an example? i.e. What are the field names?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Well just imagen a form asking for basic questions and advanced questions… If you save the page I wish to see a title basic Q. With all the answers and if some advanced Q. Were answered I wish to see AND ONLY in that case a title "Advanced Answers" followed by the answers given.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Hmm. Somehow I get the feeling there's a way to do this, but I can't for the life of me figure out how at the moment. Good problem :) Maybe Bryce, James, or someone else can find a solution.
I suppose as a workaround, for now, you could use an extra checkbox field asking users to check the box if they'd like to answer some advanced questions. Then based on that answer, decide whether or not to display it on your final page.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Wait - I've got it. I think. Would this solve your problem? Nest your classes.
Only if Q1, Q2, Q3 and Q4 are left empty, the Advanced Answers title will be hidden.
If any of the advanced questions have a value entered into their associated text field, it will trigger the Advanced Answers header and any other content you have inside those divs to appear. This is because the browser can no longer find the path to ".empty1.empty2.empty3.empty4".
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Yes that's a way to solve it for the moment… Now did you support my wish or not?
Thanks for the work-around… I think my suggestion will be more elegant though.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
Glad I could help ;-)
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
vote for it - this switch ( = length(field) zero or not) makes sense on a long term basis!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Syntax like this?
yes could also be interesting… But not usable as css toggle I think… I think only two values are useful.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
yes, of course I mean only a binary switch yes/no as the result ( length = zero or not) like your empty.. all other is intersting but not useable in css ..
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?