| Previous · Next | |
| User | Message |
|
rogier
|
Date: 6/30/2010 6:12 am · Subject: Default values for user profile checkbox list · Rating: 0
If I have a checkbox list user profile field, with the possible values defined like this: { Is it possible to select all of them by default, and if so, what's the syntax for that? If I set the default value to ["foo"] it works for that option. So far so good. I expected ["foo","foo2","foo3"] to work, but it doesn't. Is this a bug or is there anything else I should try?
Rogier | United Knowledge --- (Edited on 30-06-2010 13:12 [GMT+0200] by rogier) --- |
| Back to Top |
Rate [ | ]
|
|
martien
|
Date: 7/1/2010 4:10 pm · Subject: Re: Default values for user profile checkbox list · Rating: 0
Add 'multiple="1"' to extras. This worked for me. --- (Edited on 01.07.2010 23:10 [GMT+0200] by martien) --- |
| Back to Top |
Rate [ | ]
|
|
rogier
|
Date: 7/5/2010 6:05 am · Subject: Re: Default values for user profile checkbox list · Rating: 0
Thanks for the suggestion, but it sounds like the solution for a different problem. Checkboxes have no multiple attribute, select lists do. Rogier | United Knowledge --- (Edited on 05-07-2010 13:05 [GMT+0200] by rogier) --- |
| Back to Top |
Rate [ | ]
|
|
martien
|
Date: 7/5/2010 2:09 pm · Subject: Re: Default values for user profile checkbox list · Rating: 0
You're right! Now I tested with checkboxes and it still works!!?? --- (Edited on 2010-07-05 21:10 [GMT+0200] by martien) --- |
| Back to Top |
Rate [ | ]
|
|
rogier
|
Date: 7/6/2010 11:16 am · Subject: Re: Default values for user profile checkbox list · Rating: 0
Well, I got it to work. The reason why it wasn't working was a combination of caching and a PEBCAK error. So ["foo","foo2","foo3"] works OK. Rogier | United Knowledge --- (Edited on 06-07-2010 18:16 [GMT+0200] by rogier) --- |
| Back to Top |
Rate [ | ]
|