|
Hi, When using Fox forms I would like to replace a null/empty text from an input field with a character, for example "-", so that the target page is more readable. I think that I should create a Fox filter to take the empty variable and replace it with a "-" but this is far beyond my knowledge. So I tried a different route. I tried to use conditional markup in the Fox template, i.e. if input text = "" then replace with "-" else display input text. 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. Any suggestions on this would be most appreciated. Thanks Graham |
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
