use
use-when="quot;closed".equals(StatusId)"
or
use-when="${groovy: 'closed' == StatusId}"
But ant, prefer sur use statusId instead Of StatusId for your variable name
Nicolas
Le 16/01/2015 09:36, Mandar K a écrit :
> Hello All,
>
> I have created a practice component in hot-deploy
> and am trying to use the use-when in form field.
>
> Situation:
> Show Name as text input,
> But When status == 'closed', show Name as Display only.
>
> Kindly let me know where is the issue. This is a form of type single and
> Status value is correctly shown, but the Name field doesnt show as per the
> status.
> It displays a text field even is StatusId=closed
>
>
> <field name=*"StatusId"* ><display/></field>
>
>
>
> <field name=*"Name"* ><text/></field>
>
> <field name=*"Name"* use-when=*"StatusId=="closed""*><display/></
> field>
>
> Thanks,
> Mandar
>