I have read through the code of the module and it appears to me that there is no way to prepopulate multiple values in a select list. The module just assign whatever is passed in $_GEt to #value of the corresponding element of the form. If one needs to populate multiple values in a select list the #value should be equal to something like that array('Value 1', 'Value 2'), but there is no way to pass this via $_GET.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpetrov’s picture

I have created a patch that fixes this issue. May be some people might find it useful.
With this patch a user can pass a comma separated list of values, e.g: /page?edit['submitted']['my_select']=Value1,Value2

zwhalen’s picture

This is exactly what I needed. Works perfectly.

Thanks!

Ken Hawkins’s picture

Status: Active » Needs review

This works well for us, too.

I don't see an immediate downside. Can we get this pushed up to the dev?

Venus Tang’s picture

Issue summary: View changes
FileSize
477 bytes

This patch will work with 7.x-2.0

szeidler’s picture

Patch #4 applies and works fine for me, using 7.x-2.1 (just a little offset when applying the patch).