Generating a non-selectable option

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Generating a non-selectable option

Jeremy Nix
Is it possible to generate disabled options for xforms:select/xforms:select1?

Examples:

Markup: <xforms:select1>...
Output: <select..><option disabled="disabled">Disabled Option</option>...

Markup: <xforms:select1 appearance="full" incremental="false">...
Output: <input type="radio" disabled="disabled">Disabled Option</input>

Markup: <xforms:select1 appearance="full">...
Output: <input type="checkbox" disabled="disabled">Disabled Option</input>

The use case that I have is that some answers within my form have been deprecated.  They still want to show the user what the current answer is, but they do not want to allow that answer to be actively chosen.

--

Jeremy Nix
Senior Application Developer
Cincinnati Children's Hospital Medical Center


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Generating a non-selectable option

Erik Bruchez
Administrator
Jeremy,

At this time it's not possible.

We use the readonly MIP to disable buttons (triggers). Maybe we could
use the same MIP to disable individual select/select1 items. But this
would be a new feature.

-Erik

On Thu, Jul 21, 2011 at 6:57 AM, Jeremy Nix <[hidden email]> wrote:

> Is it possible to generate disabled options for
> xforms:select/xforms:select1?
>
> Examples:
>
> Markup: <xforms:select1>...
> Output: <select..><option disabled="disabled">Disabled Option</option>...
>
> Markup: <xforms:select1 appearance="full" incremental="false">...
> Output: <input type="radio" disabled="disabled">Disabled Option</input>
>
> Markup: <xforms:select1 appearance="full">...
> Output: <input type="checkbox" disabled="disabled">Disabled Option</input>
>
> The use case that I have is that some answers within my form have been
> deprecated.  They still want to show the user what the current answer is,
> but they do not want to allow that answer to be actively chosen.
>
> --
> ________________________________
> Jeremy Nix
> Senior Application Developer
> Cincinnati Children's Hospital Medical Center
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws