i have been reading a bit here and replicating stuff to suit my company's needs. At the moment i have recieved useful comments but not a definitive solution.
I want to add to the customer self registration page a dropdown list so as to have a customer add themselves to their respective company.
i tried previously with what the wiki said
https://otrs.github.io/doc/manual/devel ... anism.html
<label for="Dropdown">Example Dropdown</label>
$Data{"UserCustomerID"}
in the CustomerLogin.dtl but this did nothing. So i resorted to manually add the dropdown in the following way (based on viewtopic.php?t=16976)
Code: Select all
<div class="NewLine">
Example Label
<select title="$Text{"EXAMPLE"}" name="UserCustomerID" type="text" id="UserCustomerID" maxlength="100" value="$QData{"UserCustomerID"}" class="W50pc Validate_Required">
<option value="">-</option>
<option value="COMP1">COMPANY 1</option>
<option value="COMP2">COMPANY 2</option>
<option value="COMP3">COMPANY 3</option>
</select>
<div id="CustomerIDError" class="TooltipErrorMessage"><p>$Text{"Seleccione una opción"}</p></div>
</div>
[ 'UserCustomerID', 'CustomerID', 'customer_id', 1, 1, 'var', '', 0 ],
The login works perfectly, but the moment in which i select the dropdown it reads as empty so as in the InterfaceCustomer.pm it simply adds the email as the companyID.
So the question is as follows, how can i make the submit button use the drop down value and not the empty value?
edit:
using otrs 3.3.8
edit2:
the template engine ATM cannot be used here but the dropdown does work. Changed the name, id and qdata to CustomerID and it worked flawlessly.