Answered
02 Dec 2016
in reply to
Missing user
Link to this post
Hi Eva,
You can use the following code sample to set a default value to pick list when form loads. Please add a javascript widget to your form, place the code below after changing the pick list developer name, and set the placement by the body closing tag.
$(window).load(function()
{
var picklistvalue=$find($(".CrmPicklist_C022").attr("id")).get_value();
if(picklistvalue=="")
{
$find($(".CrmPicklist_C022").attr("id")).set_value(put here the numeric value number from CRM of the desired default option value from your options sets);
}
});
After you have placed the code on the form, you need to use a rule manager where you can simply set the criteria about what to do when option set field value change and which section you would like to hide.
If you find any problem to implement the code above or set the rule manager, please join me on free live Q/A session and our team will be happy to assist you. To register on Q/A session, please click on this link and select a day/time.
https://www.crmportalconnector.com/developer-network/training
Thanks
Syed