[CLOSED] [2.0] ComboBox HiddenName

  1. #1

    [CLOSED] [2.0] ComboBox HiddenName

    Hello,

    Just curious to find out what happened to the hiddenname property for the combobox? I was using that to submit the value selected instead of the text.

    Cheers,
    Timothy
    Last edited by Daniil; Jun 15, 2012 at 6:53 PM. Reason: [CLOSED]
  2. #2
    Please use ValueHiddenName
  3. #3
    Quote Originally Posted by Vladimir View Post
    Please use ValueHiddenName
    Thanks vladsch, I am using ValueHiddenName and this is what is being submitted as the value:

    [{"value":"English","text":"English","index":0}]
    				b.Add(Html.X().ComboBox()
    					.ID("drpLanguage")
    					.AllowBlank(false)
    					.AnchorHorizontal("100%")
    					.Editable(false)
    					.FieldLabel("Default Language")
    					.ForceSelection(true)
    					.TypeAhead(false)
    					.ValueHiddenName("Customer.Language")
    				);
    Cheers,
    Timothy
  4. #4
    There are two options:
    - Use SimpleSubmit="true" to submit value only
    - Use ComboBoxBase.ParseSelectedItems(state) to parse submitted json object
  5. #5
    Thanks vladsch! You can mark this one closed.

Similar Threads

  1. Replies: 4
    Last Post: Nov 30, 2011, 5:25 AM
  2. Replies: 4
    Last Post: Sep 28, 2011, 8:57 AM
  3. [CLOSED] Combobox: How to remove the duplicate items in the combobox?
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 09, 2011, 9:34 AM
  4. Replies: 1
    Last Post: Apr 17, 2011, 1:21 PM
  5. [CLOSED] [1.0] TimeField HiddenName
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 20, 2010, 2:24 PM

Posting Permissions