daveleeone
Member
Posted 1 year ago #
I found a bug with selectboxes and the wordpress-saving/pubishing dialog.
When I create a new article and fill-out all items, the selectboxes only lost their value. (checkbox, text, textarea, radio work well)
How it works indirectly:
1. create an new article
2. enter the name of the article
3. save the article
4. fillout the selectboxes
5. publish the the article
have you any idea how can i resolved the bug?
http://wordpress.org/extend/plugins/custom-field-template/
Let me show your template content you set. I will test it in my server. Thanks.
daveleeone
Member
Posted 1 year ago #
thanks for your quick reply.
Excuse me, I had mixed checkbox and select.
checkboxes do not work.
Here is the code of the template
[cft_group1_fieldset]
type = fieldset_open
legend = Kontakt
multiple = true
[Geschlecht]
type = select
value = Frau # Mann
default = Frau
label = Geschlecht
hideKey = true
search = true
output = true
[Adresse_firma]
type = text
size = 35
label = Institution
hideKey = true
search = true
output = true
[Adresse_webseite]
type = text
size = 35
label = Webseite ( ohne http:// )
hideKey = true
search = true
output = true
[Adresse_webseite2]
type = text
size = 35
label = 2. Webseite ( ohne http:// )
hideKey = true
search = true
output = true
[Adresse_funktion]
type = text
size = 35
label = Funktion
hideKey = true
search = true
output = true
[Adresse_strasse]
type = text
size = 35
label = Strasse / Hausnummer
hideKey = true
search = true
output = true
[Adresse_PLZ]
type = text
size = 35
label = PLZ / Ort
hideKey = true
search = true
output = true
[Adresse_land]
type = select
value = Österreich # Deutschland # Schweiz
default = Österreich
label = Land
code = 0
hideKey = true
search = true
output = true
[Adresse_bundesland]
type = select
value = Burgenland # Kärnten # Niederösterreich # Oberösterreich # Salzburg # Steiermark # Tirol # Vorarlberg # Wien
label = Bundesland (nur Österreich)
hideKey = true
code = 0
search = true
output = true
[Telefon]
type = text
size = 35
label = Telefon (Format +43 01/123456)
hideKey = true
search = true
output = true
[Mobile]
type = text
size = 35
label = Mobil (Format +43 01/123456)
hideKey = true
search = true
output = true
[Fax]
type = text
size = 35
label = Fax (Format +43 01/123456)
hideKey = true
search = true
output = true
[Email]
type = text
size = 35
label = Email
hideKey = true
search = true
output = true
[cft_group1_fieldset]
type = fieldset_close
[cft_group3_fieldset]
type = fieldset_open
legend = Schwerpunkte
multiple = true
[Fachgebiet]
type = checkbox
value = Abwanderung # Antirassismus # Asyl/Flucht # Asylrecht # Berufliche/Soziale/Kulturelle Integration # Bildung & Migration # Binationale Familien # Diversität # Diversity Reporting # Fremdenrecht # Integrationspolitik # Interkulturelles Zusammenleben # Kultur & Unterhaltung # Migration & Alter # Migration & Behinderung # Migration & Jugend # Migration & Gender # Migration & Gesundeit # Migration & Medien # Migration & Raumplanung # Migration & Stadtplanung # Migrationspolitik Europa # Migrationspolitik Österreich # Minderheiten # Religion/interreligiöser Dialog # Wirtschaft & Migration # Wirtschaft & Arbeitsmarkt # Wirtschaft & Arbeitsrecht # Zwei&Mehrsprachigkeit # Zivilgesellschaft # Zuwanderung
label = Fachgebiet
hideKey = true
multiple = true
search = true
output = true
sort = order
[Fachgebiet_n]
type = text
size = 35
label = weitere Fachgebiete
hideKey = true
search = true
output = true
[Fachgebiet_n2]
type = text
size = 35
hideKey = true
search = true
output = true
[Fachgebiet_n3]
type = text
size = 35
hideKey = true
search = true
output = true
[Fachgebiet_n4]
type = text
size = 35
hideKey = true
search = true
output = true
[Fachgebiet_n5]
type = text
size = 35
hideKey = true
search = true
output = true
[Fachgebiet_n6]
type = text
size = 35
hideKey = true
search = true
output = true
[Arbeitsschwerpunkte]
type = textarea
rows = 4
cols = 40
label = Arbeitsschwerpunkte
hideKey = true
search = true
output = true
tinyMCE = true
[Sprache]
type = checkbox
value = Deutsch # BKS (Bosnisch, Kroatisch, Serbisch) # Bulgarisch # Chinesisch # Englisch # Französisch # Italienisch # Kurdisch # Polnisch # Russisch # Spanisch # Türkisch
default = Deutsch
label = Sprache(n)
multipleButton = true
hideKey = true
search = true
output = true
[Sprache_n]
type = text
size = 35
label = weitere Sprachen
hideKey = true
search = true
output = true
[Sprache_n2]
type = text
size = 35
hideKey = true
search = true
output = true
[Sprache_n3]
type = text
size = 35
hideKey = true
search = true
output = true
[Bilder Upload]
type = file
relation = true
label = Laden Sie Ihr Foto hoch
search = true
output = true
[cft_group3_fieldset]
type = fieldset_close
Unfortunately, the checkbox type in the fieldset type is not supported yet. I will try to fix it in the future release. Thanks.
daveleeone
Member
Posted 1 year ago #
I've tried to create checkboxes out of a fieldset,but i have the same problem with saving.