Skip to Content
avatar image
Former Member

Want to hide the drop down based on text field value

Hi,

I want to hide some of the values in drop down based on one text field value.

I have the field called name which has the value A, B, C, D and also one drop down list which has the values 1,2,3,4,5,6. I want to hide the some of the values in drop down based on A or B or C. Let say, If it is A, drop down value should be 1,3,5. If it is B, Drop down value should be 1,2,3,4. Like this for every record.

Can you please help me out.

Thanks

Ram

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Mar 10, 2010 at 02:16 PM

    Why don't you use 2 dependent dropdowns instead of trying to use a TextField and a dropdown.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I set the message alert box. I am getting corresponding values for the other records. I am adding the values to drop down list every instance so it should added to the drop down list. How to find the index of the coresponding row..Using length?.

      Thanks

      Ram

  • Mar 10, 2010 at 02:30 PM

    You can use a blank drop down, write a function which has an input parameter, based on the value of the param you will dnyamically populate the drop down. No values will be copied, deleted or anything. You will have the whole list hardcoded in the script and based on the conditions you will put items into the DD or not.

    Otto

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 11, 2010 at 01:02 PM

    Dear Ramesh, you want everybody to explain, but you´re not going to think at least a little for yourself right? Like you didn´t in your last 193 posts and gave back nothing (0 points) to the community. Otto

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2010 at 03:21 PM

    Resolved by own

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 16, 2010 at 08:17 AM

    You get some points even for awarding points from your side to any other user. Because you don´t have a single point then (a) you have never helped a living soul (b) you have never awarded points for the help you get here.

    That means you won´t get any more help from my side. And I will add this comment to all your threads to warn other community members. Think about it. Fix it. Or you´re not welcomed here. Otto

    Add comment
    10|10000 characters needed characters exceeded