Hello Akhil,
1) What error is being thrown by the Lookup in preview mode? Has it been properly configured to point to a Lookup attribute of the Entity on the Form? Please provide more information.
2) If you are trying to change the value of different TPC Textbox’s based on changes in a TPC Picklist, you have two options depending on the complexity of what you are trying to accomplish.
Option #1 – Rules Manager
Create a new rule that is triggered when the target TPC Lookup field Changes. Once the field changes, use either Set Value or Copy Value on the text field that you would like to dynamically change. More information on the Rules Manager can be found here:
https://www.crmportalconnector.com/developer-network/documentation/portal-connector-widgets/tpc-form-widgets/mvc-based/rules-manager
https://www.crmportalconnector.com/developer-network/documentation/how-tos/mvc-based-widgets/how-to-configure-the-rules-manager
Option #2 – Custom JavaScript Implementation
If the TPC Rules Manager is unable to handle the complexity of your requirement, you can create a custom JavaScript implementation that is fired when the TPC Picklist value changes. You can subscribe to this event using the add_valueChanged() function of the TPC Picklist.
tpc.forms.sf_accountformjdizzle.accountcategorycode.add_valueChanged(function(arguments){ console.log(arguments) });
In the above example, you would create your own implementation where the console.log(arguments) is being done. This function will be fired any time the TPC Picklist value is changed.
More information on the TPC Picklist and add_valueChanged() function can be found here: https://www.crmportalconnector.com/developer-network/documentation/portal-connector-widgets/tpc-form-widgets/mvc-based/picklist
3) Depending on the version of The Portal Connector you are using, there will be different steps to resolve this issue. Essentially the entity is not appearing on your Portal because it does not exist in the Metadata. The following is an outline of the steps to resolve this issue depending on your version of The Portal Connector.
TPC Version 5.2 or Greater – Administration -> Portal Connector Configuration -> The Portal Connector -> Metadata Settings -> Force Resync Metadata
TPC Version 5.1 or Below – Administration -> Portal Connector Configuration -> The Portal Connector -> General Settings -> Refresh CRM Metadata
In The Portal Connector 5.2, we completely rebuilt the way TPC Metadata is processed to improve speed and performance. More information regarding TPC Metadata changes can be found here: https://www.crmportalconnector.com/developer-network/release-notes/version-5-2. More information regarding the legacy TPC Metadata can be found here: https://www.crmportalconnector.com/developer-network/documentation/setup-portal-connector/setup/sync-crm-metadata
Hopefully you find this information useful. Please feel free to reach out to support@crmportalconnector.com if you need any further assistance.
Cheers,
Josh
Last modified on 28 Oct 2019 20:10 by Josh