(Answer) (Category) WebGUI FAQ : (Category) Web Design :
How do I provide specific content based upon a field in a user's profile?
Either use the ^If(condition,"result","else result"); macro (You'll need to add it manually to your etc/webgui.conf or etc/www_example_com.conf --
 If => If, \
) or use Javascript:
 <script type="text/javascript">
 <!--
 var x= "^User("gender");"
if ( x =="male") { document.write("he ") } else { document.write("she ") } --> </script>

wg-fomATgwyDOTorg
[Append to This Answer]
Previous: (Answer) Can you point me to some things that I can do with a DataForm?
Next: (Answer) How do I deal with macros that need "s and HTML that needs "s?
This document is: http://www.gwy2.org/cgi-bin/fom?file=71
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ... Gerald Young