Disable Form Field

I have created a form that is a mathematical worksheet. There
are 3 types of fields: (1) fixed value, (2) user entry and (3)
calculated results. In order to make the calculated result fields
stand out their style is set to BOLD RED. The fixed value and
calculated results fields have been "disabled" to prevent users
from changing the values and also to force tabbing to skip over
these fields. But disabling these fields makes them "gray" and the
calculated results fields do not match the style (i.e. BOLD RED).
Using "readonly" solves the style issue but then the user can
access the filed and try to change it. How can I get around this?
The site is at www.pacificproductsinc.com

Hi -
All you need to do is assign a class to the input field, that
styles the
text color red and bold, like so:
(This goes before the closing </head> tag)
<style type="text/css">
<!--
.red { color: #FF0000; font-weight: bold; font-size: .9em }
-->
</style>
And then apply it to your input field, for example:
<input type="text" disabled="true" value="$$$$"
class="red">
If you're using an external stylesheet, just add the ".red"
class to the
stylesheet.
HTH, take care.
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Proud GAWDS Member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"tomgu" <[email protected]> wrote in message
news:e8urb1$mih$[email protected]..
>I have created a form that is a mathematical worksheet.
There are 3 types
>of
> fields: (1) fixed value, (2) user entry and (3)
calculated results. In
> order to
> make the calculated result fields stand out their style
is set to BOLD
> RED. The
> fixed value and calculated results fields have been
"disabled" to prevent
> users
> from changing the values and also to force tabbing to
skip over these
> fields.
> But disabling these fields makes them "gray" and the
calculated results
> fields
> do not match the style (i.e. BOLD RED).
>
> Using "readonly" solves the style issue but then the
user can access the
> filed
> and try to change it. How can I get around this?
>
> The site is at www.pacificproductsinc.com
>
>

Similar Messages

  • Submit disabled form field value?

    Is it possible to disable a form field, but still have it be included in the request object on the form handler page?
    For instance, I have a field that is required and the customer wants it disabled so it can't be changed until another checkbox is selected. When the form is submitted, the disabled field value isn't passed. Is there anyway around that, short of changing the customer requirement?
    Thanks,
    -Shadow

    You might try using the property "readOnly"
    It applies to textfields/textareas
    http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/readonly_1.asp?frame=true
    This doesn't disable the component - it can still be selected.
    It just cannot be edited.
    http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-readonly
    The readonly attribute specifies whether the control may be modified by the user.
    When set, the readonly attribute has the following effects on an element:
    Read-only elements receive focus but cannot be modified by the user.
    Read-only elements are included in tabbing navigation.
    Read-only elements may be successful.
    The following elements support the readonly attribute: INPUT and TEXTAREA. Cheers,
    evnafets

  • Disabling user form fields in Jsp..

    Hi I wrote a function to disable form fields for a resource.
    function disable(element){
        if(element != undefined){
            element.disabled = true;
            element.className="Fieldsdisabled";
            element.value="";
    when I call this method like  below , it disables textbox, textarea but not radio button field, Can anyone please help what mistake I am making.
    var element1=document.resourceObjectForm.elements["resourceFormData.parentFormData['UD_NY_'City_NAME]"];
                      disable(element1);  { This is a text field which gets disabled}
    SimilarlyTextarea, combo box gets disabled.
    But when I use it to Disable a radio Button  having two values like X,Y:
                      var element3=document.resourceObjectForm.elements["UD_NY_CITY"];
                      disable(element3); (This is radio button field}
    It is not disabling it.
    Can anybody tell what is the mistake here?

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

  • Enabling / Disabling a field on a Form

    Hi, I would like to enable a field for user input query value,
    but once the data is returned to the form, I want to disable that
    field so that it cannot be editable. (i.e. it is the PK for that
    table). Anyone has any suggestions / Ideas.
    Thanks
    Srini

    Hi,
    If you can find the form element in Javascript using
    document.forms[0].elements[i] - where i is the element number
    then you can disable it by
    document.forms[0].elements.disabled=true;
    and enable it by
    document.forms[0].elements[i].disabled=false;
    the javascript would be something like:
    if (document.forms[0].elements[i].value > "") {
    document.forms[0].elements[i].disabled=true;
    this will disable the field if it has a value.
    you should put this in AFTER displaying the form since otherwise
    the form is not there for the code to run on.
    Regards Michael

  • How to disable certain form fields from a calculation with a check mark fields.

    How to disable certain form fields from a calculation with a check mark fields.
    In Canada we have to taxes
    I create a form that calculate them to a total
    I need to be able to turn off any of those to taxes to participate to the calculation and their visibile field should become 0
    I was thinking using a checkbox (when checkbox is on (Yes) the tax is calculated, Not ticked (Off) the tax is not calculated and the visible field should show 0 or nothing....
    I really need help on this one — I’m a complete newbie....
    Remark that the second tax is calculated on the sum of what the first tax add (first tax is pan-canadian tax (all provinces).
    The second tax is never use alone (Quebec only (on top of the Canadian one)
    Sometime for outside Canada sell - No tax at all is calculated....
    What should I do?

    I want to tank you to help, really appreciate —>
    This is the code and order... I just trow the checkbox in there (they have, so far, no purpose...)
    The code use is
    var a = this.getField("pricehorstx");
    event.value = Math.round (a.value * 7.25) / 100
    I guess -If the checkBox are check - The tax should be calculate — If “Off” the tax should be not calculated and PriceHST and /or PriceQST should show zero or be empty — The HST is always calculated in Canada, but the QST is added only in Quebec.
    I need to turn both to Zero for international sale.
    Message was edited by: Chacapamac

  • Disabling forms/highlight fields in a PDF

    Hello, all,
    I've created a button-heavy PDF in inDesign and the exported result is giving me some problems. It's prompting the highlight fields/"please fill out the following form" in Acrobat. How, how, how in the WORLD can I get rid of it? There is no form to fill out, only a lot of buttons (some of them within text) and I can't delete them or else I lose interactivity. I just need to force the forms prompt to go away, if possible. Is there a Javascript solution out there?
    Thanks so much!

    Thanks for replying! I had no idea about the buttons being form fields! The Javascript idea (though I'm crap at it) is a good one for the future, but this project has gotten out of hand as it is.
    I think I may have solved the problem, though -- by accident! I need to assign password access to the document for read/write, and it seems to have taken away the dialog box. I can only hope...
    Thanks again!

  • Changing text size in form field (rich text formatting enabled)

    Hi all,
    I'm hoping someone can help me out here. I've created an interactive PDF with form fields with "Rich Text Formatting" enabled.
    My client has filled in the fields and would like to make the text bigger. When right-click, there are only options to change the text style (bold, italics etc) but nothing to change the text size. I'm not keen on disabling and then re-enabling the "Rich Text Formatting" options as the text have been formatted (bold, italics, superscript, subscript etc) and approved, and this will remove all the existing formatting.
    Can anyone help?
    Acrobat 9.4.6
    Mac 10.6.8
    Cheers,
    Tricia

    Thanks so much!! Really appreciated!
    Strangely enough, I found the Form Field Text Properties dialogue box by randomly choosing "Hyperlink" in the right-click options. Who would have thought!

  • How to hide form fields in OIM?

    Hi,
    i want to customize OIM so, that a user see only the form field "create user".
    The form field for Role, Organization and Autorization Policies" should be disabled/hided for designated user.
    Is it possible to manage this over autorization policies?

    The set of links for users, roles, organizations and authorization policies are defined in the web application. Authorization policies only define which ones are accessible or greyed out. Selection links are always shown, with authorization policies only defining which objects are retrieved by the search.
    If you want to remove the links altogether you will need to modify the web application oim.ear.
    Edited by: duncandb on Jun 15, 2012 6:15 AM

  • Disable a field based on choice of a radio button

    Novice JS user here.  Trying to disable a text field in a pdf based on the selection of a radio button and if a specific radio buttons are
    selected, take the user to a specific field.  Ex. Married/Single, Male/Female.  So if they select Married & Female, it will take them to the Maiden Name text field.  If they select Male or Single/Female, the Maiden Name text field will disable.  I would appreciate any help on this.

    See Hiding and Showing Form Fields by Thom Parker.

  • How do I lock a PDF form field after it has been completed by a user?

    We have a problem with privacy on our downloadable Pdf Forms for customers, they are required to complete personal details within the Pdf Form Fields and then must be processed by our account team.
    But we would require customer completed forms to be disabled from any third party or employee tampering with the entered details.
    Once the data has been input into the form provided online and saved and sent-on it needs to be read ONLY from then on!
    Help please, Chris.

    It depends how secure they need to be. You could include a script in the form which sets the fields to be read-only when the form is submitted, but that can easily be bypassed (and may not be respected by third party PDF applications). Search this forum topic for examples, it's been asked many times before.
    If you have Acrobat you can flatten a form, turning the fields into regular page content, but that's not possible in Adobe Reader X. While the flattened page can no longer be edited in Reader, it can still be edited in Acrobat via the touchup tools, so for complete security you would need to apply encryption to the flattened PDF (via a certifying signature or DRM).

  • " This PDF document contains forms. The filling of form fields is not supported" -help?

    I need to fill in & submit online forms but I keep getting the above message. I realise I can view and fill in the forms in an adobe window, but I need to do this online, and it is a secure website with the form imbedded. Is there any way I can have the "filling of form fields" supported so I can do this, please?

    To switch from the less full featured built-in viewer to Adobe's Acrobat plugin, see the steps in this article: [[How to disable the built-in PDF viewer and use another viewer]].
    Can you get it working?

  • Cannot edit PDF form fields

    Windows 8.1, IE 11, Acrobat Reader (11.0.10), Acrobat Pro X1 (11.0.10)
    I received a PDF that contains what are supposedly editable form fields. When I open the document in Adobe Reader (11.0.10), a green bar appears above the top of the document stating that "This file includes fillable form fields. You can print the completed form and save it to your device of Acrobat.com", however, I am unable to type into any of the fields. Its document properties indicate that the file has "No Security", and that all operations are marked as "Allowed". I click "Highlight Existing Fields" and all the fields (dozens of them) appear highlighted, as expected. I simply cannot enter any data into the form.
    To investigate further, I opened the file in Acrobat XI (11.0.1), and enter Form editing mode (Tools->Forms->Edit).  I am unable to directly edit the form fields by clicking on them directly. There doesn't seem to be any invisible graphic layered on top of everything. The individual fields almost seem "disabled". I can, however see the list of fields in the navigation pane, and click on them individually from there and bring up their properties and modify them that way. I have checked the field properties and they all seem to be enabled, not locked, not read-only, etc...so I am at a loss as to what is preventing this form from being filled out in Reader, or edited normally in Acrobat.
    Additional info: I checked the document properties, (Document Propertied-->Description) and in the "Advanced" section, the PDF producer says that the PDF version is 1.6 (Acrobat 7.x) so I suspect this might be part of the problem. I therefore did a "Save as other...-->Reader Extended PDF-->Enable More Tools" as an attempt to upgrade the file, but that didn't help.
    Any help appreciated!

    GKaiseril wrote:
    Most users see a purple bar. I would try to repair reader.
    Actually, it has been replaced with a green bar in recent versions:

  • Editing Form Field color and search field

    I am designing a website - nextmedian.com and I am having
    some trouble changing the background color of the some form fields
    for "Your Full Name" and "Your E-mail" from yellow to dark blue.
    The link is
    http://www.nextmedian.com/contacts.html
    The Contacts webpage html code is:
    [CODE]
    <form name="formmail"
    action="/cgi-bin/formmail/formmail.cgi" method="post">
    <input type=hidden name="recipient"
    value="[email protected]">
    <table width="300" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td valign="top" width="76" align="right"
    height="25"><br style="line-height:3px ">Your Full
    Name:</td>
    <td valign="top"><input type=text name="realname"
    size="15" value=""></td>
    </tr>
    <tr>
    <td valign="top" align="right" height="25"><br
    style="line-height:3px ">Your E-mail:</td>
    <td valign="top"><input type=text name="email"
    size="35" value=""></td>
    </tr>
    <tr>
    <td valign="top" align="right" height="50"><br
    style="line-height:3px ">Message:</td>
    <td valign="top"><textarea name="body" cols="4"
    rows="2" wrap="virtual"
    id="message"></textarea></td>
    </tr>
    <tr>
    <td> </td>
    <td valign="top" align="right"><input type="submit"
    value="Send" size="1" style="width:42px; height:20px">
    <img
    src="../template_11171_SE8HPoI5oO381CXsvRUV/site/images/spacer.gif"
    alt="" width="1px" height="2px"><input type="reset"
    value="Reset" size="1" style="width:42px; height:20px">
    </tr>
    </table>
    </form> </td>
    </tr>
    </table>
    </td>
    </tr>
    [/CODE]
    (ii) I have a problem with formatting the search field -
    http://nextmedian.com/cgi-bin/search.pl
    to have the same look and feel as my website.

    On Fri, 8 Sep 2006 20:53:25 +0000 (UTC), "wire_jp"
    <[email protected]> wrote:
    >I am designing a website - nextmedian.com and I am having
    some trouble changing
    >the background color of the some form fields for "Your
    Full Name" and "Your
    >E-mail" from yellow to dark blue. The link is
    >
    http://www.nextmedian.com/contacts.html
    They look dark blue to me. Disable your Google toolbar.
    Gary

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • How to revise form field value in query and skip validation

    Hi all,
    I have a 10g form that has a field which I want to manipulate during query. I want to display a different value depending upon its orignal value. I did this with a Post-Query trigger on the field's datablock. However, now, when I attempt a new query, the form thinks I've changed the field (which I did). I want to change the field but trick Forms into thinking there were no updates. How do I do this? Note: the field is a list item that has a style of combo box.
    Thanks, Mike

    Ammad,
    The reason is that sometimes the list returns the record group's key value (the second column) instead of the intended value (in the first column). This is because the record group is based on a SQL query. There are some values which are no longer in the table queried by the record group, thus the key value is displayed. I would rather nothing be displayed. As of now, I display a message indicating that there is a problem with the LOV.
    I know about using a non-database form field. But I don't have any room left and I don't want to lay the non-database field on top of the database field and then have to enable/disable the two fields.
    A friend at work suggested setting update_permission to trick Forms. Tried it but not successful yet.
    Thanks, Mike

Maybe you are looking for

  • BPM 11g :: Active Directory custom user attribute binding

    Hello everyone, I'm having a special requirement from a customer who needs to make available on BPM an extended AD attribute (from the AD connected to WLS realm). As known, the standard user class does not have the possibility to read from extended U

  • State of Mac security?

    So, I keep getting these emails from Comcast's Constant Guard service claiming "Constant Guard from XFINITY identified that one or more of your computers may be infected with a bot."  They seem to be dead serious about it, though Comcast never provid

  • Disk Utility Reporting Hardware Failure on Mac HD- Not Repairable

    Hi! Looks like my hard drive is toast on my 24" aluminum case 24" imac. NOT under warranty although I bought it in Jan 09. DU reporting Mac HD in RED with message...'disk utility has detected hardware problem which cannot be repaired'. Ok. Will a sim

  • Field average calculation

    I am designing an Employee Review form and in that form I have a field that calculates the average of a set number of other fields. The problem is that the users can enter 1-5 or n, where n = no experience. I want the average field to only average th

  • JBO-25002: Definition ...of type View Definition is not found

    Hello, I am using JDev 11.1.1.4.0. I am having a problem creating read only VO, actually running on integrated weblogic server after creating one. I am getting this exception: oracle.jbo.NoDefException: JBO-25002: Definition com.model.viewobject.Orde