cancel
Showing results for 
Search instead for 
Did you mean: 

How to restrict combobox to not allow manually edit value but allow only dropdown selection

0 Kudos
727

I am having a requirement. I am having combobox and I have to allow user to input only dropdown values from odata service. I user enter anyother key then it should show invalid entry. How is this possible in combobox?

SF11
Discoverer

Accepted Solutions (0)

Answers (1)

Answers (1)

venkateswaran_k
Active Contributor
0 Kudos

Hi

If the issue is still not resolved, you can try this code. You can set the jQuery attribute input.

myComBox.addEventDelegate({
         onAfterRendering: function() {
              oComboBox.$().find("input").attr("readonly", true);
         }
});

Regards,

Venkat

venkateswaran_k
Active Contributor
0 Kudos
preety16442

Is your issue resolved?

venkateswaran_k
Active Contributor
0 Kudos

Hi preety16442

If this issue is resolved, you can mark the solution and close the thread. That will help others while searching for similar soln.