SID-01248: Display variable stored in form field
| Status: |
Answered |
TWiki version: |
5.0.2 |
Perl version: |
5.8 |
| Category: |
CategoryAPI |
Server OS: |
AIX |
Last update: |
14 years ago |
Hello,
I have form fields which contain TWiki variables. I want to be able to do a search of the topics, and display the TWiki variable without having it resolve.
i.e. The form field
targetTime contains %SOMEVAR%, and lets say that %SOMEVAR% is equal to "3", so when I do a search and display this form field in a table (!$formfield(targetTime)), I want the screen to display %SOMEVAR%, not "3".
Not sure if it's possible with the current program flow, or if I can do some series of escapes or TRANSLATES to get out the desired result.
Merci!
--
AaronLWalker - 2011-08-08
Discussion and Answer
Not sure if this works, have you tried to embed
$formfield(targetTime) in
<verbatim> tags? You need to escape verbatim as well, such as
<$nop()verbatim>...<$nop()/verbatim>.
--
PeterThoeny - 2011-08-08
That does it! I actually worked that out, but was working on getting it all wrapped in the
BeautifierPlugin when I ran into more problems. Perhaps another support question in the future... Thanks!
--
AaronLWalker - 2011-08-09
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.