Skip navigation
Currently Being Moderated

Expand To Fit for Drop-down list

Jul 22, 2011 2:54 AM

Hi All,


Why expand to fit option is disabled for drop-down list?

Is there any way to make the drop-down field expandable as per the data selected?


Thanks and Regards-


  • Currently Being Moderated
    Jul 22, 2011 3:54 AM   in reply to chalukya

    Hi Chalukya,


    Though not sure, still I guess all the values in a dropdown are pre-existing or if we use dynamic properties to update the dropdown we can know atleast what could be it's length.May be that's the reason expand options are not available.


    But if you want to expand it you can do so a bit of scripting.


    When we select something from the dropdown through change event we can get the vairable length. If the variable/item length is greater than a particular value then we can expand the dropdown.


    In the change event of the dropdown :

    You have to use FormCalc if you want to use Len otherwise you can use an array in javascript.


    if(Len($event.change))   > 10


              this.w = "10inch";





    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points