Skip to Content
avatar image
Former Member

Change atributes inputfield.

Hi,

I've a radiobutton and a input field. I've a action for the radiobutton. I want change the method for the action. I want that when the radiobutton is selected, the inputfield -> enabled = false. How can i do?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jun 12, 2007 at 12:07 PM

    Hi

    Create one more attribute in teh context , type WDY_BOOLEAN , and give the default value as false ,which will enable and disable the field on action of the radio button.Bind this new attribute to the enabled field of your UI elemment , here its the input field.

    During the action set the attribute value = true.

    Thanks

    Anzy

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2007 at 12:06 PM

    Declare a context attribute "read_only" and bind it to the read_only property of your input field. In the event handler of the radio button, set this attribute to X or space. It will automatically reflect in your input field.

    Hope this helps.

    Regards,

    Nithya

    Add comment
    10|10000 characters needed characters exceeded