Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 12:25 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Replace a checkbox with a hidden field
PostPosted: January 8th, 2010, 9:44 pm 

Posts: 39
Hello, I need help to change a checkbox with a hidden field.

I dont know the code of the action file, but it processes a form if the checkbox is checked, or discart it when not. So I want it to have the field checked and hidden, or something that gives me the same result, and I can't edit the action file, so I need to find how to do it on the form.


I don't want to give the user the option to uncheck it ('cause if so the form would be rejected) neither I want to have it visible, thanks for your help.


Top
 Profile  
 
  Re: Replace a checkbox with a hidden field
PostPosted: January 9th, 2010, 12:32 am 

Posts: 96
You will need to find the checkbox that affects and get its name and value. Then replace it with this:
<input type="hidden" value="previous value">

If the checkbox didnt have a value then do this:
<input type="hidden" value="on">


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron