Hiding Form field on selecting a choice!

Hi All...
The scenario :
There are four form fields : DeptId (inputText), EmpId (inputText), AgentName (inputText),Grade (selectOneChoice).
The field Grade (selectOneChoice) has values of {A,B,C}.
When I select grade as 'C', the field AgentName has to be hidden immediately.
Can anyone tell me how to do it programmatically ?
Regards,
KR

Hi Timo...
But i want it programmatically...
I know this is a very simple one but i did some very silly mistake... please check my code below...
Backing_bean
getIt8() - AgentName
getSoc1() - Grade
Code :
*public void onValueChange(ValueChangeEvent valueChangeEvent) {*
*// Add event code here...*
String lovValue = getSoc1().getValue().toString();
*if(lovValue.equals("C")){*
AdfFacesContext.getCurrentInstance().addPartialTarget(getIt8());
getIt8().setRendered(false);
*}else{*
AdfFacesContext.getCurrentInstance().addPartialTarget(getIt8());
getIt8().setRendered(true);
*}*

Similar Messages

  • Form Field Properties, "select all option"

    A form with multiple field types such as text and check marks, having the ability to select all of a specific field type to make a properties change like "format" is very useful.  In Acrobat 8, a document with say, 50 fields of text, and 20 fields of checks, you could select all checks or text fields to make a properties change without limitations. Please quit removing useful functions.

    I guess you were using the specific Field Tool to access the common properties of specific field types. The Field tools have been abandoned (except for the Button Tool) in favor of the Form Edit Mode. (what I think of that is obvious knowing that my main tool for forms development is Acrobat 7… testing in 9 and 10 is OK, however).
    So, you might still be able to access the common properties of specific field types by switching to the Form Edit Mode and selecting the according Field tool there. A kludge, works against the hands, and may have unwanted side effects, but a possibility.
    It is a shame that we must beg in feature requests for fixing bugs…
    Max Wyss.

  • PDF map form field unknown behavior

    HI guys,
    I'm trying to map my PDF template to my sample xml but whenever i click the 'Map Form Fields' button, a new window is loaded without the BI Publisher's PDF mapping tool.
    The window only contains this message:
    **"Map PDF Form Fields
    Click on each highlighted form field and select the data field that it corresponds to. When finished, use the Submit button in the PDF form."**
    below the message is a grey blank screen (it should be the BI Publisher's PDF mapping tool).
    I'm not sure why it's happenning. Did i miss some configurations or components?
    Please help me out..
    thanks much

    Pl post details of BIP version, along with the client OS details and the PDF/Adobe version.
    Srini

  • Showing/Hiding certain fields based on Radioset selection

    Hello all,
    I'm like to know whether it is possible to Show/Hide certain fields using a RadioSet selection as it is done in Forms in ADF UIX. Kindly go through this post.
    Showing/Hiding certain fields based on Radio Group selection
    kindly help me out on this.
    Thanks & Regards,
    Arun.V

    Hi Arun,
    Here is what I do with my checkboxes, but I think that the radiobutton will do the same:
    <af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
                          label="Label 1"
                          binding="#{backing_page1.selectBooleanCheckbox1}"
                          id="selectBooleanCheckbox1"
                          autoSubmit="true"
                          immediate="true"/>
    <af:inputText label="Label 1" binding="#{backing_page1.inputText1}"
                          id="inputText1"
                          disabled="#{!backing_page1.selectBooleanCheckbox1.selected}"
                          partialTriggers="selectBooleanCheckbox1"
                          value="#{backing_page1.selectBooleanCheckbox1.selected}"/>

  • Dropdown boxes selection-additional form field

    FormsCentral -->Templates tab -->  Trade Seminar R.S.V.P Form ( https://adobeformscentral.com/?f=fFzLm5nQP1QqDDU2UeQTsw&preview# )
    In this form there is a feature I would like to create in one of my forms. Under "meals" if you select "other" an extra form field appears...how do I create this?
    Thx!

    When you create the drop down there is a "Include Other Choice" option on the field property panel - check it.

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • Need help Loading images with selection on a form field?

    So I'm kind of a newb.. I can do basic forms but I need to set up a form field drop down box that will give me the ability to load images correlating to the users choice. I'm at a total loss for where to start, so ANY help would be appreciated. If you know of any good books or tutorials on the subject please share.
    Thanks in advance
    Sincerely,
    Stumped4now 

    P.S. I think I'm getting a better understanding of OCGs after lots of research today. However I still seem to be missing something
    var docOCGs = this.getOCGs();
    for (var x=0; x < docOCGs.length; x++)
      if(docOCGs[x].name == "Layer1")
      docOCGs[x].state = !docOCGs[x].state;

  • Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    Can I cause checking a box to add 1 to a calculated form field?  I have a field that sums the numbers entered in several previous fields and need to be able to add "1" if a checkbox is selected as well.

    I think it has something to do with the way the value of the check box is exported, but I'm not sure.  With nothing being exported to Data5, Data6 displays the sum of Data1-4 rounded down to the nearest whole number and updates automatically as Data1-4 are updated.
    Right now, assuming Data1-4 are 0, where data 5 is the output of the second example and any box is checked,  "1" is displayed in data5 but nothing is added to data 6. Selecting any other check box or deselecting that check box will cause data6 to add 1 even if data5 displays "0".  By way of example:
    Selecting Check box 16 results in Data5 displays 1 and Data6 displays zero.
    Then, if any or all of Checkbox17-20 are selected, Data5 displays 1 and Data6 displays 1.
    Then, if any or all of Checkbox17-20 are deselected, Data5 Displays 1 and Data6 displays1.
    Then, if Checkbox16 is deselected, Data5 displays 0 and Data6 displays 1.

  • Can we selectively flatten form fields in a PDF file?

    I have a PDF with some form fields in it. I want to selectively flatten a few form fields in the PDF using a java API. I have checked the documentation and found a method transformPDF in the OutputServiceService. But this method flattens all the form fields in the PDF document.
    Can we selectively flatten form fields in a PDF file? If yes how?
    This was possible in Adobe Document Server V6.
    Regards,
    Ragha

    You will need an event in the form that will indicate that you want the flattening done. Once you determine what that is it is simply a single statement for each field:
    fieldname.access = "readOnly";
    Now when the form is rendered, the user will not be able to get access to these fields.

  • PDF forms have problems displaying text and only appears when the field is selected

    Hello,
    I created some pdf forms to distribute to the company clients. But we are having some people complaining about the text visibility. When they have work in team, the pdf that they receive from a third person often appears unfill or without text, the text is only visible when the field is selected. I need to find a solution for this because our company products are base on this forms.
    If there is any addition information that I should add to understand what is happening and how to fix it, I'll be happy to write it.
    In the company, we all have mac and the forms where created innitially in Adobe acrobat 9 pro, but we have now Adobe acropabt XI pro.
    The users have both Mac and Windows systems.
    Thank you,

    This is usually caused by the form being filled-in and saved by a Mac user who is using the Preview application to view the PDF. More information is here: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html
    It is a good idea to inform your users that Adobe Reader (or Acrobat) should be used to work with the forms.

  • Firefox form fields do not clear when selected (i.e., "Enter Zip Code" should disappear when clicked). Has to be erased in vers. 8 & now 12

    I just upgraded from vers. 8 to 12 in order to fix this.
    Can't remember when this started, but it was mid version, not due to an update.
    At first, I thought vendors programmers were getting lazy, but then realized it was too prolific.
    Firefox form fields must be erased manually, after entering -- should go blank as soon as selected.
    Is this a setting I am missing

    In some cases, the temporary ("placeholder") content is inserted by a new method available in HTML5. This page has some boxes you can use to test whether this new feature is working in your Firefox.
    [http://www.html5accessibility.com/tests/placeholder-labelling.html HTML5 placeholder attribute tests] (please ignore the discussion about bugs)
    In other cases, the site may be using a script to clear the temporary content as soon as you click the box. This is necessary to support older browsers. If you block JavaScript on the page -- either by unchecking the Enabled box in the Options/Content tab or using the NoScript add-on -- then the temporary content will not be removed. However, if you are not blocking JavaScript, then the problem could be (i) the site's scripts or (ii) a conflict with another add-on, perhaps one that relates to automatic form filling.
    Can you give an example of a page where this is a problem?

  • 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

  • Problem with Hiding fields of selection screen which is called as subscreen

    Hello All,
    I have problem while hiding the selection screen which is called as subscreen.
    Flow of my logic:
    Selection-screen with one field and three buttons CREATE,DISPLAY and CHANGE in application toolbar.
    user enter some value in field and either he press change or dispaly
    When change i need to call selection screen when it is in dispaly i need to stop calling this selection screen.
    Upto my knowledge we can't stop calling selection screen in display mode so there is only one possibility is hiding the fields when it is in display mode.
    How can i hide the fields and where i need to hide fields?
    Please post some codes.
    Regards,
    Lisa

    you can refer the sample code which i mentioned in your previous post. that will solve the problem.

  • Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?

    Why do I have to select "continue allowing" every time I visit certain sites in order to be able to type into flash based form fields?
    See attached image for reference to what button I am referring to. Until i hit the "continue allowing" button I can not type into the form fields. I have tried removing and reinstalling flash. refreshing firefox, and clearing cache and cookies, and deleting the permissions.sqlite file. Nothing has worked. This issue just started happening a few days ago. Please let me know what I might be able to do to fix this.

    That full page including the form is a Flash object.
    I didn't see this doorhanger opening when I tried the URL in a new profile.
    Did you previously created an exception or is the default selected if you check the permissions for the Flash plugin?
    You can inspect and manage the permissions for the domain in the currently selected tab:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    You can go to the Permissions tab (Tools > Page Info > Permissions)
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Firefox 4: Printing to PDF: Text in form fields can't be selected

    I have a problem when printing to PDFs (using PDFCreator, but this doesn't seem to matter): while the text of a web site is printed as text, the content of form fields always gets rasterized so that it is impossible to search or select it. It happens on all sites, e.g. try printing http://www.december.com/html/demo/form.html and selecting "All is well that ends well".
    Details:
    - HW acceleration is off (http://support.mozilla.com/en-US/questions/760923).
    - Happens also in safe mode.
    - in IE9 this issue doesn't appear. In FF3.x it didn't appear as well.
    - using FF 4.0.1
    Thanks a lot.

    Hello,
    I would suggest you to run optical character recognition and see if that helps, please follow the steps mentioned below:-
    Open the document- Tools- Text Recognition- In this file
    Regards,
    Nakul

Maybe you are looking for

  • Bridge cs6 doesn't recognize my cs5.5 .indd files?

    I just upgraded from CS 5.5 to CS 6. When I go into Bridge and double click an old CS5.5 .indd file it tries to open in MS Word. (I find this very strange) If I right click the file and click "open with" the only option it gives me is MS Word. I don'

  • Change background color in rollover?

    Is it possible to have a text box background color change in a rollover? That is, the text color changes AND the background changes.

  • Error loading Itunes

    I get the following error message when trying to load Itunes: ' There was a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.' Its a very vagu

  • Where to find the error code in your language.

    For the DBA whose native language is not English, sometimes read the error code in your language can be helpful. I give you to know this website where you can find the oracle error codes in 15 languages: Spanish, French, German, Portuguese, Swedish,

  • Filter by Flag and Stacks

    In my lightroom library, I have multiple stacks of shots that are similar. I also use the Pick and Reject flags with the individual photos in each of these stacks, and I like to make use of filtering by pick for developing. However it seems that a st