2

there is no problem to prefill normal fields, but i am not able to prefill one or more checkboxes neither with typoscript nor via GET-Parameter.

i tried:

GET-Parameter: 
&tx_powermail_pi1[field][marker][0]=1
&tx_powermail_pi1[field][marker][0]=1


Typoscript: 
marker = TEXT
marker.value = 1

marker.0 = TEXT
marker.0.value = 1

is there a passibility to prefill /preselect a checkbox?

Thanks!

1 Answer 1

2

OK, i got it after analysing the PrefillMultiFieldViewHelper ... :-)

I changed the definition of the labels of my checkboxes in the flexbox:

Option|1
Other Option|2

Now i can prefill my checkboxes with:

&tx_powermail_pi1[field][marker][]=1&tx_powermail_pi1[field][marker][]=2

Easy when you got the logic behind it :-)

Sorry for the noise!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.