You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by vivek mishra <mi...@gmail.com> on 2013/07/18 06:29:33 UTC

Form Widget Issue

Hello All,

Can't we use multiple radio button field in a single form widget? I am
trying to add four radio button field's section but it's displaying only
the last one.

For ex: In a feedback form we have certain options like Quality, Services
etc. In each option we have good, average, below average parameters.
When I am adding Quality and Services as a radio button and putting options
inside these radio button fields it's displaying the last one only. In this
case it only shows Services and it's option.

Any help will be much appreciated.

Thanks & Regards,
--
Vivek Mishra

Re: Form Widget Issue

Posted by Jacques Le Roux <ja...@les7arts.com>.
For me this works perfectly against trunk
I did not try to handle a request, just the UI

Index: specialpurpose/example/widget/example/FormWidgetExampleForms.xml
===================================================================
--- specialpurpose/example/widget/example/FormWidgetExampleForms.xml (revision 1504451)
+++ specialpurpose/example/widget/example/FormWidgetExampleForms.xml (working copy)
@@ -384,6 +384,26 @@
               <entity-options key-field-name="exampleTypeId" description="${description}" entity-name="ExampleType"/>
            </check>
         </field>
+        
+        <field name="radioButton1" title="A" id-name="a" >
+            <radio>
+                <option key="VGD1" description="Very Good" />
+                <option key="GOD1" description="Good" />
+                <option key="AVG1" description="Average" />
+                <option key="BAG1" description="Below Average" />
+            </radio>
+        </field>
+        <field name="radioButton2" title="B" id-name="b">
+            <radio>
+                <option key="VGD" description="Very Good" />
+                <option key="GOD" description="Good" />
+                <option key="AVG" description="Average" />
+                <option key="BAG" description="Below Average" />
+            </radio>
+        </field>
+        
     </form>
+    
+    
 
 </forms>

Jacques

vivek mishra wrote:
> Two radio button fields are not there in a single form Jacques..  :(
> 
> Regards,
> 
>> Try to experiment where it already exists: MiscForms.xml
>> 
>> path: webtools/control/WebtoolsLayoutDemo
>> 
>> Note that the field name must be unique...
>> 
>> Jacques
>> 
>> vivek mishra wrote:
>>> Hi Nicolas,
>>> 
>>> Here's the sample code:
>>> 
>>>  <form name="formName" target="targetrequest" title=" Form" type="single"
>>>             header-row-style="header-row">
>>>         <field name="radioButton" position="1"  title="A" id-name="a" >
>>>             <radio>
>>>                 <option key="VGD" description="Very Good" />
>>>                 <option key="GOD" description="Good" />
>>>                 <option key="AVG" description="Average" />
>>>                 <option key="BAG" description="Below Average" />
>>>             </radio>
>>>         </field>
>>>         <field name="radioButton" position="2" title="B" id-name="b">
>>>             <radio>
>>>                 <option key="VGD" description="Very Good" />
>>>                 <option key="GOD" description="Good" />
>>>                 <option key="AVG" description="Average" />
>>>                 <option key="BAG" description="Below Average" />
>>>             </radio>
>>>         </field>
>>>     </form>
>>> 
>>> Here it is showing only the last title "B" with four radio button for very
>>> good, good, average and below average. It doesn't show "A" with these
>>> option.
>>> 
>>> Thanks & Regards,
>>> 
>>>> Hi vivek,
>>>> 
>>>> Can you give us the code ?
>>>> 
>>>> Nicolas
>>>> 
>>>> Le 18/07/2013 06:29, vivek mishra a écrit :
>>>> 
>>>>  Hello All,
>>>>> 
>>>>> Can't we use multiple radio button field in a single form widget? I am
>>>>> trying to add four radio button field's section but it's displaying only
>>>>> the last one.
>>>>> 
>>>>> For ex: In a feedback form we have certain options like Quality, Services
>>>>> etc. In each option we have good, average, below average parameters.
>>>>> When I am adding Quality and Services as a radio button and putting
>>>>> options
>>>>> inside these radio button fields it's displaying the last one only. In
>>>>> this
>>>>> case it only shows Services and it's option.
>>>>> 
>>>>> Any help will be much appreciated.
>>>>> 
>>>>> Thanks & Regards,
>>>>> --
>>>>> Vivek Mishra
>>>>> 
>>>>> 
>>>> 
>>>> --
>>>> Nicolas MALIN
>>>> Consultant
>>>> Tél : 06.17.66.40.06
>>>> Site projet : http://www.neogia.org/
>>>> -------
>>>> Société LibrenBerry
>>>> Tél : 02.48.02.56.12
>>>> Site : http://www.librenberry.net/

Re: Form Widget Issue

Posted by vivek mishra <mi...@gmail.com>.
Two radio button fields are not there in a single form Jacques..  :(

Regards,
--
Vivek Mishra


On Fri, Jul 19, 2013 at 3:49 AM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Try to experiment where it already exists: MiscForms.xml
>
> path: webtools/control/WebtoolsLayoutDemo
>
> Note that the field name must be unique...
>
> Jacques
>
> vivek mishra wrote:
> > Hi Nicolas,
> >
> > Here's the sample code:
> >
> >  <form name="formName" target="targetrequest" title=" Form" type="single"
> >             header-row-style="header-row">
> >         <field name="radioButton" position="1"  title="A" id-name="a" >
> >             <radio>
> >                 <option key="VGD" description="Very Good" />
> >                 <option key="GOD" description="Good" />
> >                 <option key="AVG" description="Average" />
> >                 <option key="BAG" description="Below Average" />
> >             </radio>
> >         </field>
> >         <field name="radioButton" position="2" title="B" id-name="b">
> >             <radio>
> >                 <option key="VGD" description="Very Good" />
> >                 <option key="GOD" description="Good" />
> >                 <option key="AVG" description="Average" />
> >                 <option key="BAG" description="Below Average" />
> >             </radio>
> >         </field>
> >     </form>
> >
> > Here it is showing only the last title "B" with four radio button for
> very
> > good, good, average and below average. It doesn't show "A" with these
> > option.
> >
> > Thanks & Regards,
> >
> >> Hi vivek,
> >>
> >> Can you give us the code ?
> >>
> >> Nicolas
> >>
> >> Le 18/07/2013 06:29, vivek mishra a écrit :
> >>
> >>  Hello All,
> >>>
> >>> Can't we use multiple radio button field in a single form widget? I am
> >>> trying to add four radio button field's section but it's displaying
> only
> >>> the last one.
> >>>
> >>> For ex: In a feedback form we have certain options like Quality,
> Services
> >>> etc. In each option we have good, average, below average parameters.
> >>> When I am adding Quality and Services as a radio button and putting
> >>> options
> >>> inside these radio button fields it's displaying the last one only. In
> >>> this
> >>> case it only shows Services and it's option.
> >>>
> >>> Any help will be much appreciated.
> >>>
> >>> Thanks & Regards,
> >>> --
> >>> Vivek Mishra
> >>>
> >>>
> >>
> >> --
> >> Nicolas MALIN
> >> Consultant
> >> Tél : 06.17.66.40.06
> >> Site projet : http://www.neogia.org/
> >> -------
> >> Société LibrenBerry
> >> Tél : 02.48.02.56.12
> >> Site : http://www.librenberry.net/
>

Re: Form Widget Issue

Posted by Jacques Le Roux <ja...@les7arts.com>.
Try to experiment where it already exists: MiscForms.xml

path: webtools/control/WebtoolsLayoutDemo

Note that the field name must be unique...

Jacques

vivek mishra wrote:
> Hi Nicolas,
> 
> Here's the sample code:
> 
>  <form name="formName" target="targetrequest" title=" Form" type="single"
>             header-row-style="header-row">
>         <field name="radioButton" position="1"  title="A" id-name="a" >
>             <radio>
>                 <option key="VGD" description="Very Good" />
>                 <option key="GOD" description="Good" />
>                 <option key="AVG" description="Average" />
>                 <option key="BAG" description="Below Average" />
>             </radio>
>         </field>
>         <field name="radioButton" position="2" title="B" id-name="b">
>             <radio>
>                 <option key="VGD" description="Very Good" />
>                 <option key="GOD" description="Good" />
>                 <option key="AVG" description="Average" />
>                 <option key="BAG" description="Below Average" />
>             </radio>
>         </field>
>     </form>
> 
> Here it is showing only the last title "B" with four radio button for very
> good, good, average and below average. It doesn't show "A" with these
> option.
> 
> Thanks & Regards,
> 
>> Hi vivek,
>> 
>> Can you give us the code ?
>> 
>> Nicolas
>> 
>> Le 18/07/2013 06:29, vivek mishra a écrit :
>> 
>>  Hello All,
>>> 
>>> Can't we use multiple radio button field in a single form widget? I am
>>> trying to add four radio button field's section but it's displaying only
>>> the last one.
>>> 
>>> For ex: In a feedback form we have certain options like Quality, Services
>>> etc. In each option we have good, average, below average parameters.
>>> When I am adding Quality and Services as a radio button and putting
>>> options
>>> inside these radio button fields it's displaying the last one only. In
>>> this
>>> case it only shows Services and it's option.
>>> 
>>> Any help will be much appreciated.
>>> 
>>> Thanks & Regards,
>>> --
>>> Vivek Mishra
>>> 
>>> 
>> 
>> --
>> Nicolas MALIN
>> Consultant
>> Tél : 06.17.66.40.06
>> Site projet : http://www.neogia.org/
>> -------
>> Société LibrenBerry
>> Tél : 02.48.02.56.12
>> Site : http://www.librenberry.net/

Re: Form Widget Issue

Posted by vivek mishra <mi...@gmail.com>.
Hi Nicolas,

Here's the sample code:

 <form name="formName" target="targetrequest" title=" Form" type="single"
            header-row-style="header-row">
        <field name="radioButton" position="1"  title="A" id-name="a" >
            <radio>
                <option key="VGD" description="Very Good" />
                <option key="GOD" description="Good" />
                <option key="AVG" description="Average" />
                <option key="BAG" description="Below Average" />
            </radio>
        </field>
        <field name="radioButton" position="2" title="B" id-name="b">
            <radio>
                <option key="VGD" description="Very Good" />
                <option key="GOD" description="Good" />
                <option key="AVG" description="Average" />
                <option key="BAG" description="Below Average" />
            </radio>
        </field>
    </form>

Here it is showing only the last title "B" with four radio button for very
good, good, average and below average. It doesn't show "A" with these
option.

Thanks & Regards,
--
Vivek Mishra








On Thu, Jul 18, 2013 at 11:26 AM, Nicolas Malin <
malin.nicolas@librenberry.net> wrote:

> Hi vivek,
>
> Can you give us the code ?
>
> Nicolas
>
> Le 18/07/2013 06:29, vivek mishra a écrit :
>
>  Hello All,
>>
>> Can't we use multiple radio button field in a single form widget? I am
>> trying to add four radio button field's section but it's displaying only
>> the last one.
>>
>> For ex: In a feedback form we have certain options like Quality, Services
>> etc. In each option we have good, average, below average parameters.
>> When I am adding Quality and Services as a radio button and putting
>> options
>> inside these radio button fields it's displaying the last one only. In
>> this
>> case it only shows Services and it's option.
>>
>> Any help will be much appreciated.
>>
>> Thanks & Regards,
>> --
>> Vivek Mishra
>>
>>
>
> --
> Nicolas MALIN
> Consultant
> Tél : 06.17.66.40.06
> Site projet : http://www.neogia.org/
> -------
> Société LibrenBerry
> Tél : 02.48.02.56.12
> Site : http://www.librenberry.net/
>
>

Re: Form Widget Issue

Posted by Nicolas Malin <ma...@librenberry.net>.
Hi vivek,

Can you give us the code ?

Nicolas

Le 18/07/2013 06:29, vivek mishra a écrit :
> Hello All,
>
> Can't we use multiple radio button field in a single form widget? I am
> trying to add four radio button field's section but it's displaying only
> the last one.
>
> For ex: In a feedback form we have certain options like Quality, Services
> etc. In each option we have good, average, below average parameters.
> When I am adding Quality and Services as a radio button and putting options
> inside these radio button fields it's displaying the last one only. In this
> case it only shows Services and it's option.
>
> Any help will be much appreciated.
>
> Thanks & Regards,
> --
> Vivek Mishra
>


-- 
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/