Tags:
create new tag
view all tags

SID-01248: Display variable stored in form field

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Display variable stored in form field
SupportCategory CategoryAPI
TWiki version 5.0.2
Server OS AIX
Web server IBM HTTP v7
Perl version 5.8
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2011-08-09 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.