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
--
AndrewRJones - 01 Dec 2006
Answer
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.
- Make your input field
readonly
, see Readonly fields in Web forms
- 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