Tags:
create new tag
view all tags

Question

We have a template set up and a HTML form from which to create topics based on the template. If the forms input box is set to disabled (<input type="text" name="topic" size="30" disabled="disabled" />), the contents of the text box will not be sent as a %URLPARAM{..., or in the case above there will be no topic name and the topic won't be created.

Is this supposed to be the case? or is it a bug?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins:  
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality

-- AndrewRJones - 01 Dec 2006

Answer

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.

It is not a bug and should work. I believe that you are missing the value, eg, value =

-- SteveStark - 03 Dec 2006

The text box is getting filled in using javascript, and having a value attribute does not solve the problem.

-- AndrewRJones - 04 Dec 2006

There are several other ways.

  1. Make your input field readonly, see Readonly fields in Web forms
  2. Use a hidden field for the topic name and use javascript to write the value to the screen as text

-- ArthurClemens - 04 Dec 2006

Use a hidden form field:

<input type="hidden" name="topic" value="%URLPARAM{foo}%" />

-- PeterThoeny - 04 Dec 2006

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-02-17 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.