Hi,
I have a problem in cforms binding with value of child field. I have a
select field that have two values (1,2) and for the value 1 it has a
field with a binding value.
Definition:
<fd:field state="active" required="true" id="accio">
<fd:datatype base="string"/>
<fd:label>select
</fd:label>
<fd:validation/>
<fd:selection-list>
<fd:item value="1">
<fd:label>Text1</fd:label>
</fd:item>
<fd:item value="2">
<fd:label>Text2</fd:label>
</fd:item>
</fd:selection-list>
</fd:field>
<fd:union case="accio" id="union-accio">
<fd:widgets>
<fd:group state="active" id="1">
<fd:widgets>
<fd:field state="active" required="true" id="emailnou">
<fd:label>Field item txt</fd:label>
<fd:hint>hint</fd:hint>
<fd:validation>
<fd:length max="100" min="0">
<fd:failmessage/>
</fd:length>
</fd:validation>
<fd:datatype base="string"/>
</fd:field>
</fd:widgets>
</fd:group>
</fd:widgets>
</fd:union>
Binding:
<fb:value path="[EMAIL PROTECTED]'C'[EMAIL PROTECTED]'accio']/VALORS_ITEM/VALOR"
id="accio"/>
<fb:union path="[EMAIL PROTECTED]'C'[EMAIL PROTECTED]'accio']/VALORS_DOMINI"
id="union-accio">
<fb:group path="[EMAIL PROTECTED]'1']/ITEMS" id="1">
<fb:value path="[EMAIL PROTECTED]'C'[EMAIL PROTECTED]'emailnou']/VALORS_ITEM/VALOR"
id="emailnou"/>
</fb:group>
</fb:union>
When i put estat="output" in the child field (emailnou) it works and
when i put a value in the binding of the father field it also works
(value 1).
thanks.
Carlos.
----------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]