Forums

Forums / Developing Portals / Auto filled lookup field

Auto filled lookup field

Thread is closed for posting
2 posts, 1 answered
  1. Missing user
    Missing user avatar
    14 Aug 2017
    Link to this post
    how i can to set the logged user as default value in a lookup fields?
    (note that the logged user is crm contact and the lookup field is mapped to the contact entity)
  2. Missing user
    Missing user avatar
    Answered
    01 Nov 2017
    Link to this post
    For this you may use static value widget if the logged user value remains constant, or if you are using lookup widget then you can use JavaScript API to get the value of contact id. For example if you are using MVC form you can use JavaScript API as tpc.identity to get the value of contact id and then set this value in the lookup field.

    Refer to the JavaScript API documentation:
    https://www.crmportalconnector.com/developer-network/documentation/portal-connector-widgets/tpc-client-side-api/mvc-based
2 posts, 1 answered