Forums

Forums / Bugs & Issues / getControlValue on a CrmPicklist

getControlValue on a CrmPicklist

Thread is closed for posting
2 posts, 1 answered
  1. geoff.white
    geoff.white avatar
    31 posts
    Registered:
    27 Jan 2015
    03 Nov 2015
    Link to this post
    I'm getting this error when trying to get the value of a picklist.

    The form is a read only form, and I'm using the following javascript:
    var kidsport = getControlValue(findControl(".CrmPicklist_C077"));

    It works for CrmTextField and CrmLookup.

    I am getting the following error in the console:
    Uncaught TypeError: Cannot read property 'get_selectedItem' of nullpavliks.PortalConnector.Controls.Form.CrmPicklist.CrmPicklist.get_selectedText @ ScriptResource.axd?d=72sSEjcHeAjma0dD7ib8Ux88EeV6r0pzchYtLQ3hwr0tjIb0gXqaxYI5uoSDm3zdugiV1XueRJ4HQb…:27getControlValue @ clubsonline-club-detail-view?accountid=7d5586a7-f668-78e8-8e81-0ceffdb24a2d:2608club @ clubView.js:46(anonymous function) @ clubsonline-club-detail-view?accountid=7d5586a7-f668-78e8-8e81-0ceffdb24a2d:2798(anonymous function) @ clubsonline-club-detail-view?accountid=7d5586a7-f668-78e8-8e81-0ceffdb24a2d:2798l @ ScriptResource.axd?d=2AsK-UqEdLbFGw1uQ2w93rSpuMh7GM9csbvEk5chAJ1w_l63pAyE5d-UeDmUVq0ouY9B1YOg-2OAMl…:2c.add @ ScriptResource.axd?d=2AsK-UqEdLbFGw1uQ2w93rSpuMh7GM9csbvEk5chAJ1w_l63pAyE5d-UeDmUVq0ouY9B1YOg-2OAMl…:2v.fn.v.ready @ ScriptResource.axd?d=2AsK-UqEdLbFGw1uQ2w93rSpuMh7GM9csbvEk5chAJ1w_l63pAyE5d-UeDmUVq0ouY9B1YOg-2OAMl…:2(anonymous function) @ clubsonline-club-detail-view?accountid=7d5586a7-f668-78e8-8e81-0ceffdb24a2d:2798v.event.dispatch @ ScriptResource.axd?d=2AsK-UqEdLbFGw1uQ2w93rSpuMh7GM9csbvEk5chAJ1w_l63pAyE5d-UeDmUVq0ouY9B1YOg-2OAMl…:2o.handle.u @ ScriptResource.axd?d=2AsK-UqEdLbFGw1uQ2w93rSpuMh7GM9csbvEk5chAJ1w_l63pAyE5d-UeDmUVq0ouY9B1YOg-2OAMl…:2
  2. Missing user
    Missing user avatar
    Answered
    03 Nov 2015 in reply to geoff.white
    Link to this post
    Hello Geoff,

    It looks like there is a problem with a custom JavaScript  code  and not a bug with Portal Connector. It needs to be investigated. Please follow the folllowing link https://www.crmportalconnector.com/support/support open a support case and our support team will be glad to assist you. 

    Regards,
    Boris
2 posts, 1 answered