Need disabled fields

I need code or help where I can disable form fields when a customer select some option in a form, so that the customer will not be able to fill in some parts of the form.

I'm looking for a sample like this in Google but couldn't find anything.

You must use the radio button as a trigger (onClick = "disable_fields ()", etc.)  disable/enable javascript code for the appropriate form fields.

Tags: Dreamweaver

Similar Questions

  • Unable to activate if disabled field once

    Hi all

    I developed a custom form in 10g for R12.1.3 applications.

    Registered and everything is ok with the applications.

    The form has 31 fields to enter hours OT, if the employee is on leave, then the respective fields get deactivees, while selecting the month (list).

    1. to disable fields from the days of leave. (trigger when-list-changed)

    -YES, TO DISABLE FIELDS ON DAYS OFF, THE CODE STARTS HERE
    DECLARE

    CURSOR C1 IS

    Select TO_CHAR (LEVEL - 1, "GFMD" + Start_date) AS DAYS

    de)

    SELECT employee_number, start_date, end_date

    OF v_leave_details

    where employee_number =: XXFUJOTHRS. EMPLOYEE_NUMBER-'5527 "

    )

    WHERE the arguments start_date + level 1 - > = TO_DATE ('01' |: XXFUJOTHRS.) OT_MONTH | : XXFUJOTHRS. OT_YEAR, "dd-mm-yyyy")

    AND start_date + LEVEL - 1 < LAST_DAY (TO_DATE ('01' |: XXFUJOTHRS.)) OT_MONTH | : XXFUJOTHRS. OT_YEAR, "dd-mm-yyyy")) + 1

    CONNECTION OF LEVEL < = 1 + end_date - start_date

    AND PRIOR employee_number = employee_number - or anything that is unique

    AND PRIOR start_date = start_date

    AND PRIOR SYS_GUID () IS NOT NULL;

    BEGIN

    FOR J IN C1 LOOP

    -DBMS_OUTPUT. PUT_LINE (J.DAYS);

    set_item_property ('OT_DAY' |) J.DAYS,, property_false);

    END LOOP;

    END;

    But I am faced with two questions.

    1. when I ask any employee, and if the employee has in months (Jan-14 for 1 to 10 days), days off (by pressing down) then other months also showing from 1 to 10 day off along with the disabled is days all the leaves in their respective months.

    2. If any employee back early before the end date, I say leave her is from 1st January 14 to January 10, 14, and he returned on 8 January 14, it has OT January 9, 14.

    So I kept a button as indicated in the form and the code is as below.

    Shutter button (When-button)-

    -TO MAKE THE FIELD ACTIVATE AGAIN IF THEY R DISABLED BY LEAVES

    DECLARE

    CURSOR C1 IS

    SELECT 1 + LEVEL - 1 DAYS

    OF THE DOUBLE

    CONNECTION OF LEVEL < = to_char (last_day (to_date ('01' |: XXFUJOTHRS.))) OT_MONTH | : XXFUJOTHRS. OT_YEAR, 'dd-mm-rrrr')), 'jj');

    BEGIN

    I'm in c1 LOOP

    -dbms_output.put_line (i.days);

    set_item_property ('OT_DAY' | i.DAYS,, property_true);

    END LOOP;

    END;

    This code works great, if you enter new record and press the button, but if you ask the same employee and you click on the button DISPLAY, the code above does not work.

    Please suggest this two questions.

    I tried keeping the codes in post-query-trigger also, same problem.

    Thank you and best regards,

    Afzal.

    Sorry

    Use set_item_property and pass the parameters of another and try as insert_allowed...

    Hope this will help you

  • How you gray out / disable fields in an option button if another radio button is selected in Adobe Acrobat Pro XI?

    How you gray out / disable fields in an option button if another radio button is selected Adobe Acrobat XI Pro?

    I have created a form where the user has three options to make a payment.

    1. charge on my credit card
    2. costs related to the bank account
    3. By check or money order

    My problem is, under each option, there are required fields that must be filled. So if the user chooses the first option, charges on my credit card, they would fill in the mandatory fields (card credit number, expiry etc.). But when they click on the "submit" button to send the form, he won't let them, because there are a of the fields required in the title of the second the second option, the costs related to the costs related to the bank account. Is there a way to gray out or disable the other two payment options when it is taken. I guess I'll have to use javascript, but what would be the coding and what field do I write under?

    Thanks in advance guys

    I do all the fields that are not required until the user selects the relevant box.

    For example, as soon as the user selects the credit card radio button, only credit card fields are required.

    It could be the script to make the credit card required/not required fields:

    var r = this.getField("PaymentMethod").value;     Use the name of the radio here group

    var CCfields is ['Field1', 'Field2', 'Field3'];.         Enter the names of the fields of credit card here

    If the user has chosen credit card as payment method, make the required credit card fields

    If (r == 'Credit Card') {}

    for (var i in CCfields) this.getField(CCfields[i]).required = true;

    }

    Else, no required credit card fields

    else (var i in CCfields) this.getField(CCfields[i]).required = false;

    You should do something similar for other types of 2 payment, for example

    If (r == "Bank account") {}

    do something

    }

    etc.

    ......

  • need a field based on the comparison of the other fields

    Generator 6.0.8.11.3
    ORACLE Server Release 8.0.6.0.0
    6.0.8.11.0 Oracle procedure Builder
    Oracle ORACLE PL/SQL V8.0.6.0.0 - Production
    The basic Oracle 4.0.6.0.0 - Production version
    Oracle Tools Integration Services 6.0.8.10.2
    Space common tools Oracle 6.0.5.32.1
    Oracle Toolkit 2 for 32-bit Windows 6.0.5.35.0 platforms
    Resource store 6.0.5.0.1
    Oracle Help 6.0.5.35.0
    Oracle Sqlmgr 6.0.8.11.3
    Query Oracle 6.0.7.0.0 - Production Designer
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle 6.0.8.11.3 ZRC
    Oracle Express 6.0.8.3.5
    Oracle XML Parser 1.0.2.1.0 Production
    Virtual graphics system Oracle 6.0.5.35.0
    Image of Oracle 6.0.5.34.0
    Widget media Oracle 6.0.5.34.0
    Oracle tools GUI Utilities 6.0.5.35.0


    IAM, saw the presentation of the State as below

    -- M_6
       -- M_10
          -- B_13
          -- F_94
       -- M_FOR_REP1
          -- R_SALESMAN
             -- M_39
                -- B_74
                -- F_113
             -- M_7
                -- B_33
                -- F_2
             -- M_CUSTOMER
                -- R_CUSTOMER
                   -- F_98
                   -- M_GNAME
                      -- R_5
                         -- M_12
                            -- F_41
    Above is my complete schema of my report how she look like

    (B_33) Sales men: F_2

    F_2 lists all sellers. (david, george... so on)

    F_98 lists all the categories of products (furniture, cars... so on)

    Lists of F_41 amount of special category

    F_113 lists the sum of F_41.

    The parameters I pass is:

    Date: 1 Aug 11
    Updated: 31 Aug 11
    Company code: 110
    Orgn name: OR dodine
    Type of sale:
    Sellers of: DAVID FOO
    Sellers to: DAVID FOO
    Customer of:
    Customer to:
    Year of the Date: June 1, 11
    Year to date: 31 Aug 11
    Report in detail: Yes


    And the output of my report is
    Item Type                      ProductFamily                  Quantity            Sales
    (MYR)
    
    -------------                   ---------                     -------             ---------
                 
    
    
    
    
    
    Sales Men : DAVID FOO
    01FN
    01FN
    FNDM
    FNUM
    NEW CASA [BROWN (CS5839)]
    CELLINI LEATHER [BEIGE FL35A]
    CELLINI LEATHER [BLACK FL 10B]
    21,585.50
    I need a field more and the result should like to compare F_2, F - 98, F_41

    For each salesman(F-2) it will be of a different category (F_98), I need to add the quantity (F_41) for all of the same type.

    as
    Customer :  David
     
     
             Sales men :     Thomas
     
    Furniture                100
    Automotives               50
    Textiles                  20
    Mobiles                   10
     
             Sales men :    Daniel
     
    Furniture                 30
    Textiles                  10
    Ship                      20
     
    Customer : George
     
     
             Sales men :      Thomas
     
    Furniture                 20
    Mobiles                   50
     
     
             Sales men :    Daniel
     
    Furniture                 10
    Mobiles                   20
    
    {code }
    
    
    result 
    Sellers: Thomas Daniel

    120 40 furniture
    Automotive 50
    20 10 textiles
    60 20 mobile phones
    Boat 20


    Designates all the function of the category for each vendor for different clients should be added. Please explain to me how to place the extra field and write the logic for this. I'm trying to do this from last month that nobody gives a feedback appropriate, if you want to know something more about this let me know I will give you with the full flight of information.

    Published by: user9093700 on March 12, 2012 01:08

    your break is best for this nt

    I think you can create a temporary table

    the category of fields and quantity seller

    Insert and update for each record with a formula or create a new sql query and maybe use a matrix to show as you want

  • Best practices on disabling fields?

    Hello

    I use jdev11R1. I have a page named (firstpage.jspx) jspx. This page is from unboundedTF.

    I want to disable more than 15 fields on just one button. but here, each developer has a different approach to do so.

    can any one of the experts said that's the best approach?

    Developer 1 approach:

    1. tell that we unite all the fields in your bean.

    2. the inside button actionlistener bindvar.setDisabled (true).

    2. Add the partial target programmatically.

    Developer1 saying his advantage on his point of view:

    1 ADF approach traditionally (create bindings). Apart from that I don't need any other substance

    Developer 2 Approach:

    1. I will create 15 variable in your return type of bean must Boolean as well as the get set accessor.

    2. I'm having a common method public void endis (Boolean bool) {this.setVar (bool) ;}

    3 inside of the actionlistener button, I'll call endis (true);

    4. Add the partial target programmatically.

    5. last step in all areas, I use el expersion as #{scopetype.beanname, var}

    Developer 2 saying his advantage on his point of view:

    1 Java approach traditionally (get set accessor).

    2. in the future if I there is a change in condition as

    -no need to disable all fields. just a few fields.

    -Repeat the same thing to the other buttons.

    ultimately without having to completely rewrite .little bit effort only.

    3 Developer approach:

    1. I have a variable pageFlowScope inside the actionlistener AdfFacesContext.getCurrentInstace.getPageflowScope.put('disable','y');

    2. go in all fields have expression el as #{pageFlowScope.disable eq 'y'? true: false}

    Developer3 saying his advantage on his point of view:

    1. no need to link and no need for variable declaration, getter and setter in the bean. any piece of code

    Developer1 perspective saying that following:
       --Developer2 doing having lot of code for disabling the fields.
       --Developer3 not best approach. because oracle docs saying that pageflowscope only for BTF. But pageflowscope works in unboundedTF also.
    
    
    
    
    
    Developer2 perspective saying that following
      --Developer1 binding the each and every variable into the bean for disabling the fields. default binding take care of framework why should i do?
      --Developer3 anyhow it will create getter and setter for that by the framework. if scope value lost all will fails.
    
    
    
    Developer3 perspective saying that following
      --Developer1 binding the each and every variable into the bean for disabling the fields. default binding take care of framework why should i do?
      --Developer2 having lot of code for disabling the fields.
    
    
    
    
    


    "the bottom line of the developer discussion, I conclude.

    each of them: I am the best. but each approach has own strength and weakness. »

    My question will be

    1. is there another approach outside these three?


    before answering the second question. have these things in mind.

    Point1. simple and reusable any developer.

    Point2. use of resources (memory allocation).

    Point3. less time to do the job. here after.

    2. Please suggest how best approach in all of the perspective?

    -edited lately, please pass once again,

    Thank you

    Developer 1 approach:

    ...

    Developer1 saying his advantage on his point of view:

    1 ADF approach traditionally (create bindings).

    Since when does the traditional approach? Never bind the components to a bean if it is not really necessary! Do you have other solutions, this one is out of the race.

    Developer 2 Approach:

    ...

    Developer 2 saying his advantage on his point of view:

    1 Java approach traditionally (get set accessor).

    2. in the future if I there is a change in condition as

    -no need to disable all fields. just a few fields.

    -Repeat the same thing to the other buttons.

    ultimately without having to completely rewrite .little bit effort only.

    Yes, but what the likelihood you must change the fields to turn?

    From my point of view, you put a lot of effort for something, you don't know if it will happen at all. Even if you know it comes it would be easier to form groups and use the group to toggle variable fields. You can then change a field to group a to group b without a lot of programming.

    3 Developer approach:

    ...

    Developer3 saying his advantage on his point of view:

    1. no need to link and no need for variable declaration, getter and setter in the bean. any piece of code

    You have even the code in the actionListener can you use a setPropertyListener for this. The question is why put the variable in the flowrate range of page? We do not know the use case to answer this question. Generally you shouldn't put anything in the pageFlowScope if she is not necessary outside the page. That we do not know. PageFlowScope is a broad field, so you should consider using a smaller if possible scope.

    4. solution: put all the fields in a container. Write a method in bean method that activates / deactivates all the fields of a given container of seizure something like that

    disable the rocker of all child uicomponents inside the given uiComponent

    Private Sub (AdfFacesContext adfFacesContext, UIComponent component) {} toggleDisableInputItems

    The list of items = component.getChildren ();

    for (point UIComponent: items) {}

    toggleDisableInputItems (adfFacesContext, item);

    If (item instanceof RichInputText) {}

    Entry RichInputText = point (RichInputText);

    input.setDisabled (! input.isAutoSubmit ());

    adfFacesContext.addPartialTarget (input);

    } ElseIf (point instanceof RichInputDate) {}

    Entry RichInputDate = point (RichInputDate);

    input.setDisabled (! input.isAutoSubmit ());

    adfFacesContext.addPartialTarget (input);

    }

    }

    }

    There are probably more solutions. I would stick with 3 or 4 depending on the use case.

    Timo

  • How Lock/disable fields during the loading screen?

    Hello

    I'm looking to 'lock' or 'disable' everything on the screen whenever I call setStatus(). The concept behind this is I want to use setStatus() to tell the user when loading the screen is. While it is loading, I don't want the user to be able to do anything. Is there a specific way to do this?

    Thank you!

    crush the onClose returns true, this will disable the closing screen. no need for the navigationclick or the keychar then.

  • Lightroon 6 license need disabled

    At my old computer self-destruction and cannot go on, launch LR6 and disable it.

    Technical support information for Adobe said that I need to call Adobe and disabled it manually by their support team.

    However, Adobe seems to be on the brink of financial collapse and disconnected their phones.

    With no way to call, nobody knows how to contact to have my disabled LR6 so that I can load on my new computer?

    Hi Carolb916,

    Please contact our support Chat using disabling team, as support for perpetual license option is Chat only, see What are my options contact?

    Please click here for Contact customer service.

    See also,

    Help FAQ: How do I contact Adobe for support?

    Contact the technical support FAQ: Impossible to reach support via the link "contact us".

  • Disable fields without loss of information at the time!

    Hello!

    Masters, assistance even of you, I have two fields (items) you want to be not changed by users in a given situation, they already have the same information, if I make a disable them lose this information at the time of the presentation, as I was saying disable tried, but it could be the reason to lose the reference data can not use , an idea that I could use, I put a picture to display fields for easier understanding.

    naodeixaralterar.jpg

    Thank you!

    Rogério Jahnke says:

    Masters, assistance even of you, I have two fields (items) you want to be not changed by users in a given situation, they already have the same information, if I make a disable them lose this information at the time of the presentation, as I was saying disable tried, but it could be the reason to lose the reference data can not use , an idea that I could use, I put a picture to display fields for easier understanding.

    Place items to be readonly instead of people with reduced mobility.

    It is not possible to provide more specific guidance, you did not indicate how you are currently their disabled "in a given situation.

  • Autopopulate need a field based on the selection of a field of LOV

    Hi all

    I have a requirement as below.

    I have a LOV field in my custom the OPS page by selecting a value from the lov, I need autopopulate another field of text in my custom page of OFA, please help me on how to do this.

    Thank you

    Hello

    If you get this value in processRequest means, you can use the following code.

    {

    Integer a;

    a = ResultSet.GetInt ("CCU_ID");

    System.out.println ("partid is:" + a);

    OAMessageTextInputBean oaApp = (OAMessageTextInputBean) webBean.findIndexedChildRecursive ("text");

    oaApp.setValue (pageContext,a);

    }

    Assume that if you get this value firePartialAction or processFormRequest means this field of messageTextInput must be associated with some VO, so that you can view the value of vo when running.

    Thank you and best regards,

    Myvizhi

  • Need to field to read only once saved...

    I modified the current date field to create a unique ID for a form. What I need to do is to become READ ONLY once the user clicks on the submit button. Here is my current FormCalc code

    $.rawValue = Concat (Num2Date ((), "MMDDYY" Date), '-', Num2Time (Time (), "hMMSS"))

    Any ideas? Thank you!

    Hello

    Put it in an if expression.

    if ($.isNull) then
         $ =  Concat(Num2Date(Date(), "MMDDYY"), "-", Num2Time(Time(), "hMMSS"))
    else
         $.access = "readOnly"
    endif
    
  • call javascript to enable the disabled field...

    Hi guys,.

    I want to on the field by calling javascript by pressing the button.

    How to do this?

    Thanks and respect,
    SKUD.

    Hi Skud,

    On the AJAX call back, you came to know that about enabling/disabling of fields depending on whether you can write the script below.
    document.getElementById('ITEM_NAME').disabled = true;

    Thanks and greetings
    Teriimana

  • Need a field order and tab based on another field

    It seems that this is possible, but I can't find any information.  Maybe I'm not asked the question properly.

    Based on my document attached if the CPFF tax type is selected, then I want the tab order to move the field of cost of the project and all the fields to the right.

    These fields should be required if the CPFF tax type is chosen.  If any other type of charge is selected the tab order should move to the next field.

    It is also possible to disable the tab in the fields such as kind of cool, the cost of the project, etc.?

    Thank you!

    I believe that when you say that the tab order, you mean developed and access.

    The code below, attached to the event exit the drop-down list controls, if "CPFF - fixed cost" was unsuccessful. If it was not selected, I change the access of ProjCost property, FixedFee and Total in 'read only' and set the focus on TextField1. In the contrary case, tab order is applied and ProjCost, FixedFee and Total are rendered user entered - optional by setting the property of access «»

    Form1. #subform [0]. Table3.Row1.DropDownList1::exit - (JavaScript, client)

    If (this.rawValue! = 'CPFF - more flat fee') {}

    Table3.Row1.ProjCost.access = "readOnly";

    Table3.Row1.FixedFee.access = "readOnly";

    Table3.Row1.total.access = "readOnly";

    xfa.host.setFocus (TextField1);

    }

    else {}

    Table3.Row1.ProjCost.access = "";

    Table3.Row1.FixedFee.access = "";

    Table3.Row1.total.access = "";

    }

    Steve

  • Need to field multiple select the option without having previously selected deleted

    Hi all

    Request Express 4.1.1.00.23

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    I have a requirement of adding a field of multiple selection to a single screen, and I added the list to multiple selection, without a second thought. Of course, the question is when a user tries to edit a record, click on (with the CTRL key) two options in the selection list multiple, but not clicked on those previously selected, then we lost them. Then I thought to create checkboxes and thus those already selected will be always checked when try to update.

    But I want to do with the multiple selection field. So I was wondering if there is a way?

    Thank you!

    Sam82 wrote:

    Request Express 4.1.1.00.23

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    I have a requirement of adding a field of multiple selection to a single screen, and I added the list to multiple selection, without a second thought. Of course, the question is when a user tries to edit a record, click on (with the CTRL key) two options in the selection list multiple, but not clicked on those previously selected, then we lost them. Then I thought to create checkboxes and thus those already selected will be always checked when try to update.

    But I want to do with the multiple selection field. So I was wondering if there is a way?

    This is the behavior expected multiple-selection list. It can be changed using a point hidden shadow and JavaScript, but there is no way out of the box to achieve what you propose.

    Selections several lists are usually a bad idea:

    • Users do not know how they work
    • They are confused and source of errors, except if all options are visible (which generally wastes space UI)
    • The resulting values of treatment is problematic
    • They are often the cause of a model of incorrect data or result

    Checkboxes or a shuttle are much better options and controls for multiple choice options.

  • Enable / disable fields by selecting from the list

    Hey guys,.

    How can I make an option like < bool > with a list instead of a checkbox.

    Example of work in text QooQees Widget magic. I already asked this developer but got no answer.

    This selection in the list turns off the text field:

    Bildschirmfoto 2014-08-21 um 16.09.59.png

    And if you choose another option that it activates the text field:

    Bildschirmfoto 2014-08-21 um 16.10.10.png

    No idea how to do this?

    Unfortunately, it seems that it is a hole in the documentation, but the tag in lists also support the disableOptions attribute, similar to the way in which the tag of under the made. You can see an example in the section for its operation.

  • Need to field to active second page 1 - help!

    I have a form with many pages.  I want to page (1) active and visible.  I want all the other pages that are invisible unless the field corresponding to the page (1) sn is filled.

    Example of

    Page 1

    SN for entries page 2

    SN for entries page 3

    SN for entries page 4

    etc.

    page 2, page 3, page 4, etc. should be visible as if something is entered in the field of page (1).  Like, 'si sn for page 2 = null 2 "hidden" page.

    Is this possible?

    Sorry, new to livecycle

    Thank you!

    in exit the event for your sn fields, you can add code like this - assuming that pages are labeled p1, p2, p3, etc.

    if(!this.) IsNull) p2.presence = "visible";

    else p2.presence = "hidden";

    If you include the fi and clauses, then a user can delete the information in the field and page 2 will again become hidden. If you let him out, and then once the page becomes visible, there will be no new hidden.

Maybe you are looking for

  • Some forms cannot be completed within Firefox and require swith IE tab.

    Some major sites (example Familysearch.org) query fields don't work in Firefox "native", but are OK if I switch to IE Tab. I don't know, but sites can use a kind of Adobe forms

  • 16 GB class 6 SDHC SD Card does not work with Camelio H20

    Can anyone help? I recently bought the camcorder above. I bought a 16 GB memory card class 6 SDHC separately. The map seems to work fine on my PC as a memory device.However, I can't work on the camcorder.I formatted the card on the PC and the camera

  • LabVIEW hangs while generating exe

    Hi all I created a project and have a main vi which works very well in the development environment. When I Isaiah to compile the exe for the same thing, LabVIEW crashes. I don't understand why. If someone could help with that, you are welcome. LabVIE

  • Brand new ICB

    I'm (trying to run the ANSI C compiler with the source code and keep them get the following error below.  The compiler of Blodshed will return no error and runs as expected.  Can someone tell me what I'm doing wrong in CVI?  Thanks in advance. runtim

  • Windows Movie Maker 2.6 on Windows 7

    I just installed Director windows one on 32-bit windows 7 and windows 7 64 bit cuz of my father and my brother don't like the new version of the windows live one. now back in the summer as I assumed that maybe it was or not sure, there was an update