Form Widget Issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Form Widget Issue

vivek mishra-3
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
Reply | Threaded
Open this post in threaded view
|

Re: Form Widget Issue

Malin Nicolas
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/

Reply | Threaded
Open this post in threaded view
|

Re: Form Widget Issue

vivek mishra-3
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 <
[hidden email]> 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/
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Form Widget Issue

Jacques Le Roux
Administrator
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/
Reply | Threaded
Open this post in threaded view
|

Re: Form Widget Issue

vivek mishra-3
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 <
[hidden email]> 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/
>
Reply | Threaded
Open this post in threaded view
|

Re: Form Widget Issue

Jacques Le Roux
Administrator
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/