[pmwiki-users] Replacing empty/null input in a Fox form

Hans design5 at softflow.co.uk
Wed Jan 14 10:39:34 CST 2009

Wednesday, January 14, 2009, 3:50:27 PM, Graham Archer wrote:

>  In the Fox template I am using this syntax:

>  (:if equal {$$Input_Text} "":)(:{$$Input_Text}:"-":)(:else:){$$Input_Text}(:ifend:)

>  However this doesn't work as I intended, the page shows  (::"-":) 
> instead of just the  - character I was hoping for.  
>  I can't figure out how to replace  {$$Input_Text} with a preset
> character when the input is empty.

try this in the template:

(:if equal {$$Input_Text} "":)-(:else:){$$Input_Text}(:ifend:)


More information about the pmwiki-users mailing list