Suppress fields based on values

Hi, I am trying to create an expense report in livecycle where if someone selects from a drop
down, based on the result picked, it would show a different field to fill in.  If they don't pick a specific dropdown that has extra fields, then those fields stay hidden.
For example, if they pick "mileage" from the dropdown, it will show a field to put in the mileage and then the total would show the qty * mileage rate.
If they pick "meeting", it would show a field to put in the description of meeting and another field to put in attendees.
I'm not sure how to do "hidden" fields.  I know how to do suppression formulas in crystal but don't see that as an option with livecycle.  Please help!

Hi,
First off, there is an example here which goes through the scripting method of changing an object's presence: http://assure.ly/h7whb8.
The easiest way may be to group the objects for each category of the dropdown into subforms and then show and hide the subforms as necessary.
For example the following in the exit event of the dropdown:
// hide all subforms
travelSF.presence = hidden;
meetingSF.presence = hidden;
// check the value of the dropdown and show the appropriate subform
switch (this.rawValue)
     case "Mileage":
     travelSF.presence = "visible";
     break;
     case "Meeting":
     meetingSF.presence = "visible";
     break;
Now a lot depends on whether you are using repeating objects in a flowed layout, where the user can add more rows. IF so you may need a more detailed solution.
Hopefully this will give you a start,
Niall

Similar Messages

  • Populate f4 values of a field based on value of other field

    Hi,
    I have created select options using WDR_SELECT_OPTIONS.For one of the fields ,f4 values should be based on value of another field in the screen.
    How will i achceive this requirement.
    I got a link about the same but that is not using WDR_SELECT_OPTIONS
    http://www.sdn.sap.com/irj/scn/logon?redirect=/irj/scn/wiki?path=/display/WDABAP/Using%20Search%20help%20attachments%20for%20WebDynpro%20ABAP
    I got another link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    which I am going to try
    Thanks
    Bala Duvvuri
    Edited by: Bala Duvvuri on Jun 22, 2011 6:49 AM

    Hi,
    Using OVS you can achieve this.,  In OVS Event Handler read the value based on which you  want to display F4 for other field and populate the values based on the first field.
    this link is fine., go through this: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Disabling a field based on value of three dff fields

    Hi,
    I am trying to disable a dff field based on the value of three dff LOV fields. User selects the value of these three dff from lov. I am using the below code in processRequest method of the controller but its nt giving me desired result. Kindly help me.
    Code:-
    OAMessageLovInputBean selectedSiteUseDetailDFF1 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF1");
    OAMessageLovInputBean selectedSiteUseDetailDFF2 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF2");
    OAMessageLovInputBean selectedSiteUseDetailDFF3 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF3");
    OAMessageLovInputBean selectedSiteUseDetailDFF4 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF4"); --want to disable this
    String contextVal = null;
    String lobVal = null;
    String atmVal = null;
    String defVal = "ATM Data Fields";
    String defLobVal = "ATM";
    String defAtmVal = "ENV";
         if (selectedSiteUseDetailDFF1!= null && selectedSiteUseDetailDFF2!= null && selectedSiteUseDetailDFF3!= null)
                        contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
                        lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
                        atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
                   if(contextVal == defVal && lobVal == defLobVal && atmVal == defAtmVal)
                        selectedSiteUseDetailDFF4.setDisabled(true);
    Regards,
    Rajeev

    Rajeev,
    Can you try printing the below value to check whether it's returning the expected value. let me know if its returning the screen value.
    contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
    lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
    atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
    Regards,
    Gyan

  • APEX 4.1 show hide fields based on value of checkbox/radio

    I am trying to successfully hide and show fields based on the value of a clicked checkbox.  I am using a dynamic action, but it isn't working. 
    I followed the sample at Does Oracle Apex 4 enable the following AJAX features? (ie without the dev writing the Javascript) - Stack Overflow
    I even tried a radio button, but it didn't work.  I cannot uncheck the radio button.  What am I doing wrong?  Thank you for any help you can provide.

    Hi,
         create a dynamic action for page load to hide the item which you wanna hide
         now create another dynamic action
         event : Click
         Selection Type : Items
         Items : P1_Check_box(name of the check box item)
         condition : equal to
         value : return value of the check box item (if you click the check box and the return value is 1 then just add 1)
         in true actions
         Action : Show
        Selection Type : Items
         Items : P1_Text_field(name of the field)
         uncheck fire on page load
         create exact opposite false action, that's it.
    Regards,
    Mohan.

  • Display text fields based on value

    I have a form that has 7 text fields that are to be filled out. I have an ajax process that auto-populates those 7 fields with values based off of the return value of a pop-up dynamic LOV. Is there any way that I can hide the last 5 fields based on a certain value of one of the text fields?
    For example, my fields are:
    P1_Badge (LOV query)
    P1_First_Name
    P1_Last_Name
    P1_Title
    P1_Phone
    P1_Room_No
    P1_Email
    P1_Fax
    The LOV returns a Badge number and populates the rest of the values. But if the Last_Name = 'Smith' then I only want to display Badge, First_Name, and Last_Name and I want to hide the rest of the fields or make them disabled for editing.
    Is this possible without any kind of page submit?
    Thanks,
    Dirk

    Hello,
    Take a look at this page http://apex.oracle.com/pls/otn/f?p=11933:39 it has examples of what you want.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Deriving 1 Value from 2 Fields Based on Values in Fields

    I have a query that needs to return 1 of my values based on the values from 2 fields from 2 tables. However, the value should only be returned in 1 field and one of the fields should be evaluated first. If this first evaluated field has a certain value ('Y') then the other field is ignored.
    To be more clear, per the normal query below, what I want is to somehow, if possible, combine the case t2.el_contr and case t1.contr_type statements so that one field, say: mbr_contr_type_desc returns a value.
    So that if the value of t2.el_contr is 'Y' then 'SUB CHILD' is returned. It is important that this field should be evaluated first (If the value of it is 'Y' then the other field evaluation can be ignored). If this is not 'Y', then t1.contr_type should be evaluated and the values as listed below also returned to mbr_contr_type_desc.
    I know the following isn't correct, but it might better illustrate what I'm trying to do (the normal query is below this)
    case t2.el_contr
    when 'Y' then 'SUB CHILD'
    case t1.contr_type
    when 'A' then '1 PARTY MALE SUB'
    when 'B' then '1 PARTY FEMALE SUB'
    when 'C' then '2 PARTY MALE SUB'
    when 'D' then '2 PARTY FEMALE SUB'
    when 'F' then 'FAMILY MALE SUB'
    when 'G' then 'FAMILY FEMALE SUB'
    end as mbr_contr_type_desc
    In an Access query I would do the following in a column:
    iif([el_contr]='Y',"SUB CHILD',SWITCH([contr_type]="A","1 PARTY MALE SUB",[contr_type]="B" etc.))
    *NORMAL QUERY*
    select t1.ssn
    t1.type,
    t1.grp_id,
    t1.contr_type,
    t2.el_contr,
    case t2.el_contr
    when 'Y' then 'SUB CHILD'
    end as mbr_contr_type_desc_2,
    case t1.contr_type
    when 'A' then '1 PARTY MALE SUB'
    when 'B' then '1 PARTY FEMALE SUB'
    when 'C' then '2 PARTY MALE SUB'
    when 'D' then '2 PARTY FEMALE SUB'
    when 'F' then 'FAMILY MALE SUB'
    when 'G' then 'FAMILY FEMALE SUB'
    end as mbr_contr_type_desc_1
    from member_elig t1
    inner join grp_master t2 on
    t1.grp_id = t2.grp_id

    Perfect!
    Thanks, didn't know that existed. Still learning my way around pl/sql..
    One other (unrelated) question..when i hit the CTRL+LEFT ARROW* button in my SQL window, it will not tab back. This is really annoying! I have looked through PREFERENCES-EDITOR and can't seem to find any setting that will allow this. Do you know of any way to change this so I can tab backwards/fowards through code in the SQL window?
    Thanks for any suggestions!
    *Or CTRL+RIGHT ARROW for that matter..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Infopath: How to load data in one field based on value selected in another field

    We have a drop down list field in the infopath form and we have some more fields that should change depending on the dropdown selection. 
    How can we achieve this please ?
    Thank you !

    Hi Prajk, sounds like you want to do cascading dropdowns. If so, see the link below. If you're just trying to enter information into a field (not a dropdown) based off the value of the dropdown, then set a rule so that if dropdown = "this," set
    the field's value to "this."
    http://blogs.msdn.com/b/bharatgupta/archive/2013/03/07/create-cascading-dropdown-in-browser-enabled-infopath-form-using-infopath-2010.aspx
    cameron rautmann

  • How to display f4 help for a field based on value of another field

    Hello All,
    I have 4 fields : Sales Org : VBAK-VKORG, Distrib Channel : RV50A-VTWEG, Div : RV50A-SPART, Sold-to-party : KUAGV-KUNNR.
    The second field depends on the first one, the third on the second one and the fourth on the first field.
    However, when each of the second third and fourth fields' f4 help is displayed, the values are independent of the previous fields. How do I set the f4 help to display values based on the respective fields?
    Regards,
    Mithun

    Please be sure that you are searching the forums before posting. This exact same question was asked just yesterday:
    F4 help to input field
    In particular study the section and the linked help document for ddic search helps export/importing parameters and the requirements for DDic Structure/table usage for the parameter mapping.

  • Update/Insert into two fields based on value of one.

    How would I do the following in ADDT.
    Example:
    I have a database about dogs. When user completes form they make a selection from a recordset feed drop down box of breeds. Lets say they select "PUG" based on the selection two fields are populated from the same recordset size="small" and color="brown".
    I hope I've explained this well enough
    Thanks!
    Rich

    >>
    I think I understand. I'm using two forms One to select the item from a list. I'm passing that items value to the next page where I'm placing that value into a query which will give me the options available based on the query results?
    >>
    what I meant, is first have the user insert the new record and let him specify the desired "breed" already there -- the following page(s) will need to make sure that he´s going to update the newly inserted record with additional values, that´s why you should use the "SELECT dog_id FROM dog_table ORDER BY id DESC LIMIT 1" - query on page 2. However, once this new record had been clearly identified "by id", you can add whatever options available in the secondary table which are related to the "dog_id" (breed) that has been stored when inserting the new record. Maybe *I* don´t get it, lol ;-)
    >>
    I currently do this the dropdown value to a case statement that takes the value of the dropdown and determines the correct values for the database update
    >>
    OK, but when each dog just has one option
    (thought it were two ones: "color" and "size"), isn´t your existing dependant dropdown enough for specifying that "based on breed" option without having to use a hidden field at all ? Ah well, have you ever used ADDT´s / Kollections "dependant drop-down" wizard -- that should do it for one option
    >>
    hidden field that I need to update value based on what the value is above
    >>
    humm -- updating the value of a hidden field in the very same page then ? Never heard of this being possible apart from using some hand-made javascript.
    Guess I gotta ask my dog what it thinks about all that :-)
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Disable fields based on value selected from first list box.

    Hi All,
    I am facing a problem in module pool programing. My scenario is there will be around 50 fields in the screen  , within that first field is a drop down list box. In the list box there will be electricuty , gas and csw. If user select gas then the fields corresponding to gas will only be editable other fields not relevent to gas will be non editable(Disable).... Same case for electriciy andcsw also.
    Can any one guide me regarding this....
    Thanks in advance.
    Regards
    Ajoy

    Hi Asaha,
    This link will be of great help for you if you are new to Module pool.
    [Module Pool Notes|http://wiki.sdn.sap.com/wiki/display/Snippets/ModulePoolNotes]
    For [DYNP_VALUES_READ|http://wiki.sdn.sap.com/wiki/display/ABAP/FilteringF4HelpvaluesinTablecontrol,basedonotherfield+value] refer this link.
    For [DYNP_VALUE_UPDATE|http://wiki.sdn.sap.com/wiki/display/ABAP/GettingainputfieldpopulatedonenteringthevalueinoneInputfield]
    Regards
    Abhii

  • Show/Hide JSF field based on SelectOnceChoice using Model Driven List

    Hello All,
    I have a use case where I want to show or hide fields based on values populated in SelectOneChoice. I have View master and View Lookup, master has a field named product which displayed selectiononechoice of product name built using lookup view as accessor. I am storing id of lookup type inside product column. Based on a product name say "abc" I want to hide subsequent fields. Can anyone please tell me how to implement this?
    I am using ADF 11g version 11.1.2.
    Thanks,
    Dipal

    If I understand you correctly, you are trying to show/hide subsequent fields based on the value selected from a selectonechoice?
    Did you try using partial triggers and EL for setting the rendered attribute on subsequent fields and setting autosubmit to true on selectonechoice?
    Kristjan

  • Assign a name based on values

    I can't figure out how to display a name of a field based on values.  Here is what I have:
    {SEAT_RECORD.TAX_TOTAL1}
    {SEAT_RECORD.TAX_TOTAL2}
    {SEAT_RECORD.TAX_TOTAL3}
    {Tax.ID} - IDs are 1,2 and 3
    {Tax.NAME}
    I want to assign the {Tax.Name} to the the corresponding {SEAT_RECORD.TAX_TOTAL#}.
    I have 3 IDs in Tax.ID (1,2,3). I want to create a text field with the appropriate tax name. {SEAT_RECORD.TAX_TOTAL1} corresponds with {Tax.ID} 1 and therefore should display {Tax.NAME} where {Tax.ID} = 1.
    Same for {Tax.NAME} 2 and 3
    On my Report I would like to have something like this in the footer section.
    (TaxName1) {SEAT_RECORD.TAX_TOTAL1}
    (TaxName2) {SEAT_RECORD.TAX_TOTAL2}
    (TaxName3) {SEAT_RECORD.TAX_TOTAL3}
    Do I need to create a formula or SQL expression? Any help will be appreciated.
    Thanks,
    -Matt

    That doesn't work...my footers look like this then...
    Group Footer #1a: {Tax.Name} {SEAT_RECORD.TAX_TOTAL1}
    Group Footer #1b: {Tax.Name} {SEAT_RECORD.TAX_TOTAL2}
    Group Footer #1c: {Tax.Name} {SEAT_RECORD.TAX_TOTAL3}
    and the output is pretty crazy.
    I need to be able to create a variable like
    Set @Tax1 as {Tax.Name} where {Tax.ID} = 1
    That way I can just put the variable on a footer along with {SEAT_RECORD.TAX_TOTAL1} and get what I need.
    -Matt

  • WEBI prompt based on bex variable suppress not assigned hashtag value in LOV

    Hi,
    is it possible to suppress the "Not assigned (#)" value from the list of values in a webi prompt based on a bex variable?
    This "Not assigned" value is something BW specific, BW adds this to each characteristic automatically?!
    WEBI:
    RSRT:
    It needs to work in WEBI, not only in RSRT, and the filtering of data still needs to work.
    For rsrt it works, when you exclude the not assigned value in "Filter > Characteristic Restrictions" and use the bex variable in/through "Filter > Default Values", but this does not work in WEBI, because the BEX Query Data is not filtered on the in the prompt selected value.
    Thanks.
    Regards
    David

    Thanks David for a quick reply !
    I could manage to avoid # values in WebI prompt using BAdI implementation, here is the brief:
    Problem:
    WebI report prompt (which shows BEx variable) list of values shows blanks or # . Rrequirement was to avoid these blanks or #
    Environment:
    BW 7.3
    BO 4.0
    BW Cube > BEx Query > OLAP Connection > WebI report
    Solution:
    InfoObject Level1 in BW had # values in masterdata, this could not be deleted since it was in use with other Cubes.
    Vaurable Var_Level1 displays # when pressed F4 running BEx query and in list of values in WebI report prompt.
    I implemented BAdI on Level1 info object and variable Var_Level1.
    Steps to implement BAdI are as in following link
    BEx Query - Control the values which are shown on F4
    Used following code to elimitate #.
    METHOD IF_RSR_VARIABLE_F4_RESTRICT~GET_RESTRICTION_FLAT.
    DATA: l_s_range     LIKE LINE OF c_t_range.
    DATA: l_var_range   LIKE LINE OF i_t_var_range.
    DATA: IT_MZLEVELS TYPE TABLE OF /BIC/MZLEVELS,
    WA_MZLEVELS LIKE LINE OF IT_MZLEVELS.
    DATA: L_ZLEVEL1     TYPE /BIC/OIZEVEL1.
      IF i_vnam EQ 'ZV_LEVEL1'.
    SELECT /BIC/ZLEVEL1
    FROM /BIC/MZLEVELS
    INTO CORRESPONDING FIELDS OF TABLE IT_MZLEVELS
    WHERE OBJVERS       = 'A'.
    IF SY-SUBRC NE 0.
    EXIT.
    ENDIF.
    SORT IT_MZLEVELS BY /BIC/ZLEVEL1.
    DELETE ADJACENT DUPLICATES FROM IT_MZLEVELS COMPARING /BIC/ZCLV1GP.
    DELETE IT_MZLEVELS WHERE /BIC/ZLEVEL1 = ''.
    l_s_range-iobjnm = i_iobjnm.
    l_s_range-sign   = 'I'.
    l_s_range-option = 'EQ'.
    LOOP AT IT_MZLEVELS INTO WA_MZLEVELS.
    l_s_range-low    =  WA_MZLEVELS-/BIC/ZLEVEL1.
    APPEND l_s_range TO c_t_range.
    ENDLOOP.
    ENDIF.
    ENDMETHOD.

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • PM Notification - Hide fields based on other field's value

    Hello experts,
    I am looking for an user exit which allows me to hide some fields based on other field's value.
    For example, I have field 1 and field 2. When I open my notification, if the value of field 2 is 'aaa', field 1 has to be hidden.
    There should be an user exit but I can't find it...
    Thanks for your help!

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

Maybe you are looking for

  • Using iWeb to publish to different services

    I have iLife 2008, and I also use a dot-Mac account. I want to publish a handful of different web-sites for different organizations. One organization would use the dot-Mac account. Another uses a separate web server that has nothing to do with dot-Ma

  • Saving the graphics2d to JPEG

    Hi All, I need a desperate solution for this problem. I am not able to save the contents of the Graphics2D content into an JPEG/GIF. could you pls tell me where I am going wrong. private void pathCoordinates(int iOne, int jOne, int iTwo, int jTwo,   

  • OO programing and other help......

    I got the following done. It is very nearly finished. Apart from a few error. ( Which i can't find out why so if you figure it out please be so kind to tell me. ) I think you could see my idea and what i intend to do in this program. But it is my fir

  • Weird Gnome issue

    After upgrading and rebooting, the taskbar has changed so that there are all these huge icons in the top right corner. Clicking them doesn't do anything. Does anybody know how to fix this?

  • Bold contents in Adobe Indesign CS3

    Hi there, I would like to know how to locate and use the bold command in Adobe Indesign CS3.