MultiLookup items selected, show or hide fields dynamically

Hi,
In the New or Edit Form, I would like to show or hide fields based on the multiselect value selected.
Is there a way to add javascript to achieve this and to get the selected values to show or hide the fields dynamically?
Thanks for your help.

Hi,
According to your post, my understanding is that you want to show or hide fields based on the multiselect value selected.
You can add the code below to the new form.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
function Test(){
var object= $("select[title='Lookup selected values']");
var object1=$("input[title='Test']");
var text= object.find("option").text();
alert(text);
if(text.indexOf("A")>-1)
object1.hide();
</script>
<button onclick="javascript:Test();" type="button">Test</button>
Note: You need to change the title of the select and input tags.
The result are as below:
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • How to show or hide portlets dynamically on a Portal Page

    Dear All
    1. I have a Portal Page with One Portlet in the top having like 5 Buttons. Each button click should display a separate portlet in the bottom on this same page.
    2. I have Top Portlet. For bottom I have 5 Portlets P1, P2, P3, P4 and P5. On my .portal file, I dragged and dropped top portlet and all these 5 Portlets one below each other.
    3. Now, I am trying to use BackingFile approach at PageLevel/Portlet level, to get the details of button clicked in top portlet (like name etc), and then show only one portlet at a time in the bottom section (using portlet backingcontext show/hide APIs). I do need to compare the bottom portlets defintion_label etc. which is fine for now.
    Is this the right approach...?
    Or do I have to use Portlet Custom Event approach. So top portlet will trigger event everytime button is clicked with some payload. And bottom 5 portlets listen to that event and show/hide accordingly. But in this approach, I have to attach backingfile to all the bottom portlets to listen to them.
    All the portlets are Pageflow based Portlets. Any ideas or any other simpler approaches, are highly appreciated.
    Thanks
    Ravi Jegga

    Hi Kevin
    1. Thanks a lot for the pointers. I will go with Events. So for bottom Portlets, I will use the same BackingFile. But still it is going to be custom Event. Because only one portlet will be shown. So its like my payload will be portlet def label. In Backing File, I will compare this payload with actual dynamic value and if same, show or hide that portlet. Please let me know if this is correct approach.
    2. Now each one of the Bottom Portlets is a complex pageflow portlet with many buttons of their own. So everytime a button is clicked or action is invoked, the Backing File gets called. And I had to somehow know that the same portlet has to be shown or the show/hide logic should not be called. Is there any way, where backing file gets called or just listen for Events triggered only from main top portlet.
    Thanks for the other message, where looks like you already gave lots of pointers. I will go through them.
    I will design and test this out and will keep you posted with my results.
    Thanks a lot again
    Ravi Jegga

  • How to hide field dynamically in a report while using JRC

    Post Author: prateeti
    CA Forum: JAVA
    How can I hide fields in a report dynamically?Say my report now contains 3 fields(columns). Some users want to see the 1st and 3rd column and the 3rd column must be adjusted accordingly so that it appears where the2nd column previously was.Is there any way of doing such thing using API's from JRC.I am not using RAS.
    Thanks.

    Post Author: something_stupid
    CA Forum: JAVA
    Hi,
    you could to this while designing your report in CrystalReports. Pass the user's choice as parameters to your report on runtime. This parameter is evaluated and changes visibility and position of columns conditionally. Actually haven't done this with visibilty and position but with strings to display conditionally.
    good luck!

  • Show or Hide fields based upon a variable value

    Hi,
    I am a rookie in the field of Acrobat. And my only question is :
    How to Circle a Form Field based upon a variable value .
    For example, If x=1, I want to circle Japan and if x=0, I want to leave it without any change.
    Please help me out. Thanks for your time and help.
    Thanks,
    Vijayvijay77.

    Hi George,
    I am pre-populating a Pdf file based upon the data submitted by the user. And I have to circle options selected in the form.
    I am writing coldfusion code to flatten, populate the form into a PDF form. The end result is the PDF generation with all the data in it.
    The data comes from the database, where I set variable values if any is selected or not.
    Thanks for your reply, I really appreciate your help.
    Vijayvijay77.

  • Show/hide fields when selecting an option from a drop-down menu.

    Hello Gurus!
    I have a question about creating a Java Script withing Acrobat pro.  This is what i would like to do: I created a drop-down menu with several selection entries.  Upon the customer making one of the selection entries, i would like for the correct fields that i created to become visible and all other fields to hide.  Is this even possible to do?  The reasoning behind this is because we have a form that customers have to generate in order to request access to certain financial accounts; we have over 20 different types of accounts and for each instance the customer has to fill out the same form.  By creating a drop down menu, i can use the same form by just changing the drop-down selection and clicking on the designated fields for that selection.  At this time i have over 20 different forms that poing to 20 different account requests and i would hate to send the form 20 different times to one person.  The reason i can not add all fields desired for all accounts is due to the fact that the form would be filled with hundreds of checkmarks and instructions thus making the process too tideous for the customer.  Hope you guys can help out.
    ~Vader

    The good news is, it can be done (and it has been done).
    There are a few things to be aware of, however.
    The most important is that the form must be planned well, which means that you must think carefully about your logic and even more so about your field naming (hierarchical field names are your friend). One fundamental issue, you have to be aware of, is that this form no longer will be a "standard form". The consequence of this is that you may have to be aware that you might get into trouble when you have to prove that your user filled out that particular standard form (talk to your compliance and forms management people about that).
    You also may have to decide whether the form should be usable in Reader. And, if so, how much you want to spend on the right to do so. You will see below why…
    There are actually two approaches for dynamically showing/hiding parts of a form. If your form can be separated between a fixed first page (where you also have the account type selection), and a variable part (depending on the selection), you could use Templates, which you spawn according to the selection, and delete pages when you change the selection. This approach is very easy to implement, but requires Reader Extensions Server to allow it to work in Reader; Acrobat Pro's extended rights are not sufficient for that.
    The other approach is showing/hiding fields. If you did your homework well, it would be very easy to first hide all subsequent fields, and then show the ones you need in two lines of code. This approach does not require extended rights for Reader at all, as long as your forms will always have the same number of pages, for each of your account types. This approach also works for the cases where the differences between the individual forms are very small. It does also work for showing/hiding bigger chunks of the form. In that case, you might create the "background" separately, and then put it as an icon into a button field which you will show/hide together with the carefully placed on top of it active fill-out fields.
    There is a third possibility, which Adobe Propaganda probably would suggest, and that woudl be subforms in LiveCycle Designer. The consequence is, however, that you won't have PDF forms, but proprietary XFA forms instead. And you may have more developing and maintenance work than with the other approaches.
    Back to your original question: you could use a Keystroke script evaluating event.changeEx of the combo box field. Depending on that, you would run your action to set up the according form part. The other way to do it would be evaluating event.value in the onBlur event. The latter would have the advantage that the selection has been made, and you get a bit more time to set up the form (this may in fact be an issue, particularly with Acrobat 9 and 10, which may take their time to show/hide fields).
    Another possibility instead of a drop down (combo box field) would be a popup, where you would have a button to press, and the list of selections pops up. This second method uses app.popUpMenuEx().
    Hope this can help.
    Max Wyss.

  • 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.

  • Show/hide field options are grayed out

    If a drop down value is 1, I want to show field #1. If the drop down value is 2, I want to show fields #1 & 2. If the value is 3, I want to show fields # 1 2 & 3, etc. This appears not to be possible; a show hide rule is already created for value 1 and appears unavailable for a new rule for value 2. Any ideas for a workaround?

    Yes you can do this using the hide show logic. In the case you describe you want to use the if any rule rather than the if all rule. For drop down item one the logic is if any (1, 2 or 3) are selected show item one. For item two the logic is if (2 or 3) are selected show item 2.
    Andrew

  • How to add into dynamic selection criteria (FBL1N) - custom field from LFB1

    Hello all,
    i have following problem. I added new customer field into table LFB1 (Z* field). And now i need to use this field as dynamic selection criteria in transaction FBL1N. I enhanced selection view for logical database KDF - i have created new customer view and I added my new field from LFB1. It is OK, i see this field in dynamic selection criteria in FBL1N but if i try to select according that Z* field, short dump occured.  
    open cursor with hold LC_KRED for select (VF_KRED_FIELDS)
            from <b>VF_KRED</b>
              where LIFNR in KD_LIFNR
              and   BUKRS in KD_BUKRS
              and   LAND1 in KD_LAND1
              and   KONZS in KD_KONZS
              and   VBUND in KD_VBUND
              and   AKONT in KD_AKONT
              and   BUSAB in KD_BUSAB
              and (VF_KRED_WHERE)
    Problem is in VF_KRED - this is database view (LFA1 joins LFB1). This view has no Z* fields and therefore it cannot be use in statement above -> dump.
    Is needed repature of standard - enhancement of view VF_KRED?
    Thank you very much.

    Hi guys,
    thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
    I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
    When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
    Regards

  • How hard is it to use javascript to show/hide fields. Is it easier to use the action builder?

    I know nothing about javascript and all that ive been using so far has been stuff ive found on here (thank you everyone).
    Using the action builder seems like its gonna be very tedious to do since i have so many subforms that hide, would it be esier to use javascript?

    I know nothing about javascript myself but I just created a form with about 10 different subform that show or hide depending on what the user chooses from a drop down list and I used Action Builder. If we don't know javascript, how can we use it? But Action Builder did a fine job of hiding/showing wherever I needed it. And Action Builder can do more than one thing by clicking that + sign when you are building an action.
    For instance, I needed to place a button in each subform that would close both the field that the person was working in and also the subform on the next page where the information was going into floating fields in a text block that was only visible thru a drop down list text select. I could have never figured out how to do that based on my knowledge of javascript. Thank Adobe for including Action Builder in this version of LiveCycle and I use it all the time. I find it extremely easy to use but it takes a little mental training to think thru the steps of how you can use the menu in Action Builder to make your form do what you need it to do.
    And if all else fails, ask this forum. I struggle for just so long before I come here and ask for help. I always get the answer I need. I hope you will too.
    Good luck,
    Jeanette

  • 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}"/>

  • Hide field of the dynamic line for some conditions

    Hello,
    I have a dynamic table filled like that :
    material  |   qty    |   unit    |    button  
    123455   |    489      |    PC    |     
    987654   |    376      |    PC    |     
    765432   |    534      |    PC    |     
    On the last column I have a button. When I click on it, I would like to show 2 more fields but only for the line where I clicked the field.
    material  |   qty    |   unit    |    button  
    123455   |    489      |    PC    |     
    987654   |    376      |    PC    |__X__        |      here        |       here        |
    765432   |    534      |    PC    |
    I think that I can define my table with 6 columns, hide the header of the last 2 ones, but I can't find any instruction to hide and make visible only fields of the line.
    Could you help me ?
    thanks

    I wrote this in the click method but I get an error :
    var cnt = data.form.TABLE.line.instanceManager.count;
    cnt = cnt;  //zero-based index
    for ( var i = 0; i < cnt; i++) {
    if ( i == this.parent.index )
    if ( data.form.TABLE.line.BUTTON == "X" )
    data.form.TABLE.line(i).new_field = "visible" ;
    else{
    data.form.TABLE.line(i).new_field = "invisible"

  • Show or Hide Items based on radio value

    I am trying to show and hide various Items based on the values of a radio button item. I have see the code and examples like
    function Show_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_ShowItemRow(pThat);
    } else {
    html_HideItemRow(pThat);
    The problem I am having is that I have 3 different values of the radio item and I want to display certain items based on each different value.
    For example:
    radio_value = 'Yes'
    Show Item1, Item3, Item4
    or
    radio_value = 'No'
    Show Item2, Item5, Item6
    or
    radio_value = 'Maybe'
    Show Item1, Item2, Item4
    I am fairly new to this so it might be easy, I just don't know how.
    Any help would be appreciated.
    --DG                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Arie,
    Thanks for the reply. I have tried it using the Show_On_Radio_Value function but I still can't get it to do exactly what I want. I have a working version here http://apex.oracle.com/pls/otn/f?p=25290 ,
    The code I used for this demo app is:
    [script language="JavaScript1.1" type="text/javascript"]
    <!-- Hide
    function Show_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_ShowItemRow(pThat);
    } else {
    html_HideItemRow(pThat);
    function Hide_On_Radio_Value(pThis, pThat, pValue){
    var rv = html_RadioValue(pThis);
    if (rv == pValue) {
    html_HideItemRow(pThat);
    } else {
    html_ShowItemRow(pThat);
    // End Hide -->
    [script]
    In the HTML Form Element Attribute for the radio button:
    onchange="Show_On_Radio_Value('P1_RADIO','P1_TEXTAREA','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD1','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD3','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','Maybe');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD2','No');
    Hide_On_Radio_Value('P1_RADIO','P1_TEXTFIELD4','No');
    Hide_On_Radio_Value('P1_RADIO','P1_RADIOBUTTON','No');
    The problem I see is that in the onchange event, the 'No' options are working because they appear last in the event.
    Can you possibly provide an example using a Case statement?
    Thanks,
    DG

  • On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Anyone got a fix?

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

  • Select field and hide field at data source ganaration  for LO extrction

    Hi GURU,S
    Could any one tell me what is differce between select field and hide field at data source ganation in LO at r3 side.what happend if u select field and hide field.
    Regards.
    hari

    Hi Hari,
    If you choose Select fields, you'll be able to filter this IO in Selection tab of infopackage (set IO's value(s) to be loaded).
    In case of hide field you'll not have it in the transfer structure at all.
    Best regards,
    Eugene

  • How to pass selection screen value to LDB dynamic field.

    Hello everybody,
    In my program, I am using standard LDB(PSJ) for getting data. And there is a requirement that I have to display some dynamic fields on my selection screen like plant , person responsible ( which are mandatory also ) etc. and inside the program I have to fill those dynamic fields for which the user has entered the value in selection screen.
    Could you please tell me how to pass some of selection screen values to ldb dynamic fields before GET statement.
    Thanks !!!
    Regards,
    Mitra

    >
    Pavan Bhamidipati wrote:
    > Hi,
    >
    >
    I have to fill those dynamic fields for which the user has entered the value in selection screen.
    >
    >
    > This means that the user is going to enter the values in the selection screen for the dynamic field values so
    >
    > SET PARAMETERID 'XYZ' FIELD p_field.
    >
    > where p_field is a parameter on the selection screen
    >
    > Regards
    > Pavan
    You can capture the values selected through the dynamic selections using some of the functions modules below, just search the forum for the below FM's, perhaps you can find some sample code
    FREE_SELECTIONS_EX_2_RANGE
    FREE_SELECTIONS_EX_2_WHERE
    FREE_SELECTIONS_RANGE_2_EX
    FREE_SELECTIONS_RANGE_2_WHERE
    FREE_SELECTIONS_WHERE_2_EX
    FREE_SELECTIONS_WHERE_2_RANGE

Maybe you are looking for

  • I can't print from iPhoto 8.1 - no themes.

    I've looked for the iPhoto folder under Library/Application Support, but it doesn't even exist.  So I can't even look for the themes that are supposed to be there.  This is the same situation under HD and under my user.  I tried to repair permissions

  • Program monitor activates automatically when sequenz starts to play

    Hey, This really slows down my personal workflow, whenever I hit spacebar the "program monitor" gets active, but I have my "projekct monitor" in the same spot and I want to browse my footage as the sequenz is playing  and since I have a second monito

  • Individual Bass Control for Front/Rea

    Hey everyone! I was wondering if it is possible to control the bass and treble settings for each output on my soundcard individually, ie: the front and rear speakers. The reason I ask is because I have really nice speakers connected to the rear outpu

  • How do I create a duplicate tab?

    I like to comparative shop and sometimes compare two products on the same site. In internet Explorer I just create a duplicate tab and I'm away, two weindows same site, very few clicks. How do I create a duplicate tab?

  • Sales Revenue Account '-' balance

    Hi All, why the Sales Revenue a/c shows minus balance ? what is the meaning of it? Thanks SV Reddy