Hide the form field by selecting a choice!

Hi all...

The scenario:

There are four form fields: DeptId (inputText), EmpId (inputText), Nom_agent (inputText), rank (selectOneChoice).
The field category (selectOneChoice) has the values of {A, B, C}.
When I select the category as 'C', the Nom_agent field must be hidden immediately.

Can someone tell me how to do it programmatically?

Kind regards
KR

VERSION JDEV! ???
What does not work?
You still won't tell us why you want to do in a bean?

Try

public void onValueChange(ValueChangeEvent valueChangeEvent) {
// Add event code here...
String lovValue = getSoc1().getValue().toString();
if(lovValue.equals("C")){
  getIt8().setVisible(false);
}else{
  getIt8().setVisible(true);
}
AdfFacesContext.getCurrentInstance().addPartialTarget(getIt8());
}

Timo

Tags: Java

Similar Questions

  • Hide the form field based on the name that contains some characters

    I think it's easy.

    We're looking for help with a script that allows you to hide all instances of text fields that contain a certain value. We have a running feature that applies to the same text fields, however, each text field should be labeled with a number at the end also running with this is a custom save button that flattens the page and hides some elements before the record on. The hide feature works pretty simple with "this.getField... = display.hidden; The problem is we do not want to repeat this step for each unique instance of fields that share the same name.

    We must look to each text box that has a similar title, so for example if we had several fields like that...  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to find the "my-text field" name and hide all instances of that. ' "."

    Hope this makes sense, I'm sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do if you use a hierarchical naming convention. For example, instead of using something like: my-text - field.1, my-text - field.2, etc..

    You can then hide as well as:

    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;
    
  • Treatment options for form (use the value of a form field to select a shared list or a web redirect page)

    Hello

    I tried something with the processing of the forms which doesn't seem to work. I wonder if the function really works or if I'm doing something wrong.

    Here is an example of what I do: I have a form that I want to use. I add "Web Page redirection" processing step to my form. When I click on the processing step to set up, under "General settings" there is an option that says "Choose how the launch of destination page is selected." In this drop-down menu, there are three options: always redirect to the same landing page, use a drop-down list to select the landing page and the value of a form field allows you to select the destination page. I have a hidden field on the form that contains the URL of the web page to which I would like to redirect. When I select 'Use the value of a form field to select the landing page', I select the hidden field to the field that contains the URL of the web page to which I want to redirect. It's my setup. However, when I submit the form, nothing happens, I do not redirect to the URL contained in the hidden field... This function still works? I'm doing something wrong? I can't seem to get the function "Use a drop-down list to select the destination page" to work either. The same thing happens when I try to use the "Add Contact to shared the list" processing step. I add the name of the list that is shared in the field hidden, but the contact does not appear in the shared list... These functions still work? If yes how do I configure them?

    Thank you!

    Well, I understood the problem of the shared list... You must add the ID of the list shared in the hidden field. I had to use Firebug to see the real ID of the shared list. Once you have the ID, use you it as a static value in the field. If the HTML code of the form will look something like this:

    If you do not use the lookup data ID. You use the ID real asset on the shared list. You must use something like Firebug to find.

    I'm glad everything is working.

  • What is the value mentioned in the 'group' in the form of definition list of choices.

    What is the group in the form of definition list of choices. Is this something I need to create a group first and then assign it here or just type a group, it will be created?

    I created a list of choices like below

    (2) created a sandbox and a search box with list drop down option in the console of sysadmin. (not as a searchable list of choice).

    (3) created a sanbox in the console of the identity and trying to add a list of value of the ADF, nothing is coming (not able to see the field).

    For this field of type lookup should I select only one ADF option or select one choice, instead of the ADF value entry list?

    Please suggest.

    Hello

    On the creation of research of the Group field is just for research or to specify as a result of research belonging to a specific group. For example, you can specify your specific project for all custom research chain, that you created so that in the end, you can recognize your custom research and research OOTB.

    The user interface component is depend on your condition for example if you want dropdown and a single value undergo framework that you can use selectonechoice ADF and ADF LOV alone is different where all values given in different pop up and on the selection of a value of the same value obtained on LOV but I have tested this web composer LOV component and don't forget not there is a problem with this element of the adf. I added outside rather than web composer LOV.

    To try and discover what ADF UI component is adapted to your condition by activating your sandbox and when you finalize the component that only publish your sandbox.

    Kind regards

    Shantanu

  • How can I change the font in the form fields to fill

    I have already set the fields of a font, but want to change after I test filled in the fields of text in preview mode. but now when I highlight the fields and select properties and select a different font and size, it shows the new selection of fonts but the fields will not change what has already been entered. I tried to change the field and delete the text and Fain same original font type and size is still there

    Hello.

    I guess that these areas use the option 'allow formatting of the rich text.

    Thus, it is not Properties: aspect which resulted in implementing in the form of text, thetext in the form field"' bar (CTRL-E or CMD-E).

    Uncheck the option 'Allow rich text formatting' to return to this behavior.

  • several checkboxes show/hide the same fields

    Hello

    I use Adobe LIvecycle designer ES2.  I have about 20 checkboxs need to show and hide the same fields. I can get it to show and hide the fields if the check boxes are selected. The problem lies when you uncheck a checkbox, allowing to hide the fields but if the original box is not disabled I would like this information to stay.  How do I script for this

    Hello

    You have complete control over it.

    Here are various approaches if you had four check boxes controlling the presence of a subform. All scripts are FormCalc and in the case of page layout: ready for the subform.

    Where any box would display the subform:

    If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) ge 1) then

    .its presence $ = 'visible '.

    on the other

    .its presence $ = "hidden".

    endif

    Where all four box have to click it to show the subform:

    If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) EQ. 4) then

    .its presence $ = 'visible '.

    on the other

    .its presence $ = "hidden".

    endif

    Make sense?

    Niall

  • Forms to fill out and Distribution: to flatten author text but not the form fields

    OK people, first time posting on this forum, but certainly not my first time looking for answers!  I was quite managed with other issues if I think I myself stumped on this one.

    I created the form fillable 'generic' I'm going to use to distribute to various contacts for some upcoming projects that we will participate in.  Because each project will be different, instead of having to create a new form every time, I hope that with my base model form I can enter various information with the type writing tool and somehow to protect this information to be edit/delete while allowing my contacts to enter their information in the form fields.

    I tried to apply the different variants of security features, but the downside of this is that it does not "distribute" my form so that it can be track with Adobe Tracker.  The only way I can successfully distribute this form for the masses and track responses is if all the security settings of the document are disabled.

    I hope that this logic all how I explain it.  Because the information (not the form fields) on the document sent to the changes each week, I was hoping there would be one easier way other than creating a form to complete for each new.  I'm not an expert of Actions, but it would be possible to create an Action that would "flatten" the text of the type writer only?  That would at least prevent third parties to manipulate or remove information that I placed on the document.

    This free tool based on JavaScript for Acrobat is what you need: http://www.uvsar.com/projects/acrobat/flattener/

    The typewriter tool creates a type of text box, so that you would select just this box to flatten.

  • Text shrinks in the form field. Help, please!

    How can I get the text in the form field to not not afraid? (Be as specific as possible because I'm still learning Acrobat Pro)

    Using the selection object, right-click on the field, tool select Properties,

    go to the appearance, and you'll see it there.

  • Hide the form of parameter

    Hello

    We organize reports in Viewer 10.1.2.48.18 URL in the portal.
    It works fine, but sometimes the form of parameter in the viewer isn't really necessary (even "wanted").

    The report has parameters but the user has already made selections in the portal and the LOVs are not very useful in the observer.

    Y at - it a setting I can add or changes to the map, I can do, to hide the form parameter?


    Kind regards

    Tomas Albinsson
    Stockholm, Sweden

    Hi Tomas
    The reason for which you had no response, is that the answer is no, there is no way to remove the shape parameter I'm afraid.

    Sorry about that

    Best wishes
    Michael

  • All the form fields do not paste from one file to another

    I use Adobe Acrobat DC on OS 10.10.3.

    I have a .pdf file containing form fields set up on what I want to use it as a 'model '.

    One machine I can copy the form fields and put in a new .pdf file and it works fine, but on any other machine, I tried it on it is not. On the other machines when I copy the fields of the form about 75 percent of stick them in the new .pdf.

    Is there a setting/preference on what I should check or would be - something else causing this problem?

    Thank you very much for the help.

    Replacing the old pages with the new in Acrobat is the standard way to do what you want. The fields of forms, links, code, bookmarks, comments, page/document, metadata, etc. are preserved.

  • Adjust the text in the form field

    How do you shrink to fit the text in the form field when you fill in a document?

    I use reader XI.

    This document is a form of Government and a protection on it, if it's important.

    It is mainly for the purpose of printing and using the paper document. When you print from the field cut the text and it is impossible to read the entirty of the field.

    Thank you

    Hello jjcola

    You can do that with the Reader. You need Acrobat, please try the free trial http://www.adobe.com/in/products/acrobat.html

    ~ Deepak

  • Text is not in the form field

    I created a form in Acrobat 9 Pro and received this comment from one of the users form:

    «The text in the form field does not show you what you type in until you move to the next field.» If you feel as if nothing is being filled. »

    I am not able to reproduce this behavior. Is there a setting of preference or other setting that would cause this behavior?

    In what application they opened the file? He was seen Apple, by some

    lucky?

  • StructCount bug when deleting a key of the FORM field

    Help, please.  I can't understand what I'm doing wrong.

    When I try to remove a key from the FORM field, the StructCount to the extent of the FORM remains unchanged, even if the key doesn't seem to be within the scope of the FORM any longer.  This is not the case when I create a struct in the scope of VARIABLES.  I enclose the code I used to test this.

    Is this a bug with ColdFusion?  Is there a fix / patch for this?  I use Coldfusion Enterprise version 8,0,0,176276.

    Unfortunately, I don't think you can avoid it as it seems to be a problem with the underlying FormScope class.  You could wrap your alternative 'counting' code in a cffunction.  Which would keep at least the logic in one place:

  • Hide the individual fields of a group (radio button) based on another field

    Looked through the archives, but couldn't find the answer, who worked... THANKS in advance.

    A form that contains a radio 2 field (named funding) group - 'Cash' or 'other '.

    The group following (FinancingType), which is independent now, is a group of radio buttons of the 5 field - "Cash", "FHA", "GO", 'Classic' and 'other '.

    "Cash" is selected in the first group, I want to [FinancingType]. Button of Cash to choose (what I work via a trigger MouseUp)

    If (event.target.value == "Cash).

    this.getField("FinanceType").value = 'Cash ';...

    However, I want the other 4 fields greyed out or hidden.

    In addition, if the radio button "Other" is selected, I want to [FinancingType]. Button of cash to be gray or hidden.

    (ps. I know just enough coding to get in trouble!)

    Yes, you can. The code would be:

    this.getField("FinanceType").readonly = true; or false, change it back

  • Need to hide the form on Page load and display it on a particular condition only

    I am new to Oracle Apex.

    I need to create a basic application when the user is looking for a particular table (only one field of research) and if the documents exist they would be displayed in a grid format. (This section I managed to do)

    If the search returns no results, I need to display a form to add new records to the table.

    Now, I have created a form (create a new record) on the same page as the search, but I am unable to hide the shape on the loading of the page and only show it in the case where the results of research show "NO data found".

    I made changes to the page. Please check and let me know.

    Thank you

    Zourk

Maybe you are looking for