I create a radio button and enter besides the label, a fix value for the value property (data category). The result in the browser is an empty value property:
If I change the fix value property to a computed value it looks like this in the source code of the browser:
I didn’t set the disabled and readonly property at all. The result is that the radio button is disabled and not usable.
Same behaviour with checkboxes. Is there any workaround to get the value property computed?
Subject: RE: value property in radio buttons and checkboxes empty
I’m not sure what you mean by ‘a fix value for the value property’ but I’m assuming you mean the default value. If this is so, I did not find any issues when creating a radio button with a default value. I created an editable radio button field with choices ‘One’, ‘Two’, and ‘Three’. When I set the default value of the field to “One”, “Two”, etc., it correctly selects the default value. As for making the radio button field computed: it should disable the field and make it read only. Computed fields are NOT editable so their values cannot be changed through the user interface.
Subject: Example
Thanks for your answer!
I created an example. You’ll find one XPage within the database. On the XPages there are two radio buttons.
For the first radio button i added in the Properties view → All Properties → data → value a fix value ‘Value’ resulting in an empty value property in HTML in the browser.
For the second i set a computed value for the same property. The result is that the radio button is disabled in the browser.
Edit: Here is the example: http://www.humyo.com/F/5537629-175646917