[Building Sakai] [Using Sakai] Dropdown list choice is not recovered by UsersAction.readUserForm

Steve Swinsburg steve.swinsburg at gmail.com
Wed Mar 13 23:16:10 PDT 2013


What's your code to get the param after the form is submitted? And what was the code for when it was working with the text field?

Cheers
Steve


On 14/03/2013, at 16:11, Rafael Morales Gamboa <rmorales at suv.udg.mx> wrote:

> Hello,
> 
> I have added a new entry (organization) in the user registration form. 
> First it was an INPUT field, just as all others, and it did work fine.
> 
>         <p class="shorttext required">
>             <label for="organization">
>                 #if(!$user)<span class="reqStar">*</span>#end 
> $tlang.getString("usecre.organization")
>             </label>
>             <input type="text" name="organization" id="organization"
> #if($userOrganization)value="$validator.escapeHtml($userOrganization)"
> #elseif($valueOrganization)value="$validator.escapeHtml($valueOrganization)"#end 
> />
>         </p>
> 
> Then I replaced it by a SELECT field
> 
>         <p class="shorttext required">
>             <label for="organization">
>                 #if(!$user)<span class="reqStar">*</span>#end 
> $tlang.getString("usecre.organization")
>             </label>
>             <select name="organization" id="organization"/>
>                 #foreach($item in $orgList)
>                     <option value="$item"
>                     #if($userOrganization && 
> $item.equals($validator.escapeHtml($userOrganization)))selected="selected"
>                     #elseif($valueOrganization && 
> $item.equals($validator.escapeHtml($valueOrganization)))selected="selected"
>                     #end/>$item</option>
>                 #end
>             </select>
>         </p>
> 
> and now it displays pretty but does not record the user choice.
> 
> Any ideas? Some explanation of (or references to) how form data is 
> recovered?
> 
> Regards,
> Rafael
> 
> _______________________________________________
> sakai-user mailing list
> sakai-user at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
> 
> TO UNSUBSCRIBE: send email to sakai-user-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"


More information about the sakai-dev mailing list