Skip to main content

Hi group. I am investigating the transition to lightning and wish to create a button that replaces JS URL redirect to automatically create a new contact on an Account with the correct record type. So far I have built the custom component, with controller code etc but I am stuck on how to create the layout with all the required contact fields? Can I somehow clone the existing new contact page layout and transcribe this to the custom component? The lightning app builder does not allow me to interrogate individual fields, and when I add them to the component code ie NewContact.cmp, the fields don't honour picklists, or existing field types such as Multi-Select or Checkboxes. Any assistance pointing me in the right direction would be appreciated.

4 条评论
  1. 2018年7月30日 14:04
    you probably cannot pass the account record type, but you can create several quick actions for each of them. Not nice and some work, but it might work
0/9000