Despite the report in #259400: select.inc does not return proper vaule, using multiple select (aka checkboxes), the db is storing the Readable, NOT the key value, and as a result, viewing the submission ends up with empty values for these checkboxes (since they don't match the keys it's looking for to populate the checkboxes correctly)

Removing the |Readable Value part of the select, everything functions correctly.

Comments

quicksketch’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

vacilando’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active

The problem seems to have reappeared in 2.1.3...
I am using the 'select' component with %get[act]|%get[act].
The form looks OK:
<input type="radio" name="submitted[aangevraagde_activiteit]" value="hoe-richt-je-een-hip-online-bedrijf-op" class="form-radio" />
but after submit I have that 'invalid choice' message.
When I try choice|%get[act] it works -- but in the e-mail it records selection 'choice' and not the value ('hoe-richt-je-een-hip-online-bedrijf-op')!

I've also tried 5.x-2.x-dev of 18 August but situation is the same.

Any idea of a quick help? I've been labouring on a task for days and this problem is the last bit that prevents me from finishing it. Thanks so much in advance for any hints.

vacilando’s picture

Further about this -- I have now tried the same with 'textfield' component (set as non-editable), with %get[act] as the value.
After submit the field clears (!) and there is an error message saying the field is mandatory.

I then tried using token %server[QUERY_STRING]
On view this loaded: q=uitstap&act=hoe-richt-je-een-hip-online-bedrijf-op
and the form accepted it (!), but the only thing that was then mentioned in the e-mail was: q=uitstap

Hope this helps to solve this riddle...

quicksketch’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

@vacilando: yours is a completely different bug. See #223388: %get[], tokens do not work in disabled or hidden fields