1 Reply Latest reply on Feb 27, 2013 3:20 AM by try67

    Dialog box: is it possible to change 'name' property of an element?

    Roberto Muggli

      Hello everyone!

       

      Is there a way to programmatically change the "name:" property of a dialog box control after it has been initialized?

       

      For example from this:

       

      elements:
      [
           {
                type: "radio",
                item_id: "rad1",
                group_id: "1",
                name:  "Name before line of code",
                height: 30
           }
      ]
      

       

      To this:

       

      elements:
      [
           {
                type: "radio",
                item_id: "rad1",
                group_id: "1",
                name:  "Name after line of code",
                height: 30
           }
      ]
      

       

       

       

      The dialog.load() method has no effect on a radio button; I experimented with a static_text just to the right of a radio button but it's not good enough: the radio button has a default right margin regardless of a specified width and once disabled, a static_text label is almost unreadable.

       

       

       

      Thank you