Hi everybody,

This is more a question about the software than a request for  
assistance: I am using repeated fields in my forms, like in the  
following example:

{|
| Africa
| {{{field|country|input type=checkboxes| 
values=Angola,Benin,Botswana,Burkina Faso,Burundi,Cameroon,Central  
African Republic,Cape Verde,Chad,Comoros,Congo (Democratic Republic  
of),Congo (Republic of),Côte d'Ivoire,Equatorial  
Guinea,Ethiopia,Eritrea,Gabon,Gambia,Ghana,Guinea,Guinea  
Bissau 
,Kenya 
,Lesotho 
,Liberia 
,Madagascar 
,Malawi 
,Mali,Mauritania,Mauritius,Mozambique,Namibia,Niger,Nigeria,Rwanda,Sao  
Tome and Principe,Senegal,Seychelles,Sierra Leone,South  
Africa,Swaziland,Tanzania,Togo,Uganda,Zambia,Zimbabwe}}}
|-
| Arab States
| {{{field|country|input type=checkboxes|values=Algeria,Bahrain,Brunei  
Darussalam 
,Djibouti 
,Egypt 
,Iraq,Jordan,Kuwait,Lebanon,Libya,Morocco,Oman,Palestine,Qatar,Saudi  
Arabia,Somalia,Sudan,Syria,Tunisia,United Arab Emirates,Yemen}}}
|-
| Asia and the Pacific
| {{{field|country|input type=checkboxes| 
values 
= 
Afghanistan 
,Australia 
,Bangladesh 
,Bhutan,Cambodia,China,Fiji,India,Indonesia,Iran,Japan,Kiribati,Korea  
(Democratic People's Republic of),Korea (Republic of),Lao  
PDR,Malaysia,Maldives,Marshall Islands,Micronesia (Federated States  
of),Mongolia,Myanmar,Nauru,Nepal,New Zealand,Pakistan,Palau,Papua New  
Guinea,Philippines,Samoa,Singapore,Solomon Islands,Sri  
Lanka,Thailand,Timor-Leste,Tonga,Tuvalu,Vanuatu,Viet Nam}}}
|-
| Europe and the CIS
| {{{field|country|input type=checkboxes| 
values 
=Albania,Andorra,Armenia,Austria,Azerbaijan,Belarus,Belgium,Bosnia and  
Herzegovina,Bulgaria,Croatia,Cyprus,Czech  
Republic 
,Denmark 
,Estonia 
,Finland 
,Georgia 
,Germany 
,Greece 
,Hungary 
,Iceland 
,Italy 
,Kazakhstan 
,Kosovo,Kyrgyzstan,Latvia,Liechtenstein,Lithuania,Luxembourg,FYR  
Macedonia 
,Malta,Moldova,Monaco,Montenegro,Poland,Portugal,Romania,Russian  
Federation,San Marino,Serbia,Slovakia,Slovenia,St  
Helena,Switzerland,Tajikistan,Turkey,Turkmenistan,Ukraine,United  
Kingdom of Great Britain and Northern Ireland,Uzbekistan}}}
|-
| Latin America and the Caribbean
| {{{field|country|input type=checkboxes|values=Antigua and  
Barbuda 
,Argentina,Bahamas,Barbados,Belize,Bolivia,Brazil,Chile,Colombia,Costa  
Rica,Cuba,Dominica,Dominican Republic,Ecuador,El  
Salvador 
,Grenada 
,Guatemala 
,Guyana 
,Haiti,Honduras,Jamaica,Mexico,Nicaragua,Panama,Paraguay,Peru,Saint  
Kitts and Nevis,Saint Lucia,Saint Vincent and the  
Grenadines,Suriname,Trinidad and Tobago,Uruguay,Venezuela}}}
|}

So the same field is used several times in the same form.

This works fine except for 2 details:

1 - in the source code, I get the relative template's parameter  
repeated as many times as the number of identical fields repeated in  
form, like:

{{Geographic properties:
| country =Mozambique, Romania, Nicaragua
| country =Mozambique, Romania, Nicaragua
| country =Mozambique, Romania, Nicaragua
| country =Mozambique, Romania, Nicaragua
| country =Mozambique, Romania, Nicaragua
}}

2 - when I save the page, but when I click again on the "edit with  
form" tab, sometimes, values previously assigned in field "country"  
get deleted, and I have to reassign them before saving the page.

The question is mainly about point 2 (although workarounds for point 1  
are welcome): does that happen because fields are not supposed to be  
used like that or rather we can call it a bug?

Thanks,

Davide



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Semantic Forms" group.
To post to this group, send email to semantic-forms@googlegroups.com
To unsubscribe from this group, send email to 
semantic-forms+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/semantic-forms?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to