Can I use ListBox control in MS CRM? I want to scroll the list item inside list. But in picklist It seems not possible. So I just want to add the Listbox control in dynamics CRM page. So can I?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can add document elements into the HTML using JavaScript. The rendered page in CRM is just HTML (with JavaScript, CSS, of course) so you can use the DOM to manipulate it in places like the onLoad event of the form.
To add an html element into a page, you would need to find the location of an existing page element then use
document.createElement()to add a SELECT object into the DOM.This blog post should get you started on adding and removing items from the list box:
http://timstall.dotnetdevelopersjournal.com/adding_and_removing_items_from_an_html_listbox.htm
Essentially, you’re using JavaScript to create an element, then add items to that. Something like this:
You would then need to manually save the option selected by the user in the onSave, and load that value in the onLoad for a record update.
Overall, it sounds like quite a complex solution for your problem. Perhaps you could explain more about what you say:
“I want to scroll the list item insid list. But in picklist It seems not possible.”
There may well be a solution to this problem we can help with. Do you essentially want to scroll the picklist to a value in the onLoad?
HTH.