Solved

Emailing form with radio button set as read-only?

Posted on 2002-06-15
5
202 Views
Last Modified: 2012-05-04
I am emailing a form and need to know how to make this radio button read only.

HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" value=""am""" & IsChecked("ampm", "am") & ">"
0
Comment
Question by:Rexx
  • 3
5 Comments
 
LVL 1

Expert Comment

by:raid999
ID: 7080886
What do you mean by read only?
0
 

Author Comment

by:Rexx
ID: 7080902
When emailing a form you probably would not want the person getting the email to be able to make changes to the form.  Using an input it would like this:

HTML = HTML & "<input name=""caddress"" type=""text"" id=""caddress"" readonly=""true"" value=""" & Request("caddress") & """ size=94 maxlength=100>"

and this works.  However, using a radial button I cannot seem to use readonly=""true"".  I've tried it in several places of radial code but after emailing it I can still manipulate the yes to a no.  You see, if yes is selected, I want the selected yes to stay that way without the person getting the emailed form to be able to manually change it to a no.

Hope this helps.
0
 

Author Comment

by:Rexx
ID: 7080904
Here is the entire radial code.  I have the readonly inserted but it doesn't work.

If Request("ampm") = "am" Then
HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" value=""am""" & IsChecked("ampm", "am") & ">"
HTML = HTML & "</font></td>"
HTML = HTML & "<td align=""left"" valign=""bottom"" width=""87""><font size=2 face=""Arial"">PM"
HTML = HTML & "<input name=""ampm"" type=""radio"" id=""ampm"" readonly=""true"" value=""pm""" & IsChecked("ampm", "pm") & ">"
HTML = HTML & "</font></td>"
end If
0
 
LVL 33

Accepted Solution

by:
hongjun earned 50 total points
ID: 7080975
Try using the disabled property.

Example

<input type="radio" name="radio1" readonly="true" value="first" checked disabled>First
<br>
<input type="radio" name="radio1" value="second" disabled>Second


hongjun
0
 

Author Comment

by:Rexx
ID: 7081001
Inserting
disabled
works

Thanks.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
add custom headers to my mail 2 56
format nvarchar field as mm/dd/yyyy 4 71
Voice recognition ASP or ASP.NET or JavaScript 2 69
Microsoft SQL ADO Conn Issue 6 48
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question