HI all,
I have to do something I have not done before, which is on click of an "Activate Account" button, to store certain values on the Account as variables via JavaScript, which are shown below.
- "lastName": "string",
- "firstName": "string",
- "businessphone": "string",
- "email": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zipCode": "string",
- "businessName": "string",
- "deepLink": "string",
- "urlPrefix": "string"
Once the Button is clicked, it needs to be then hidden, and a custom field bf_accountactivatedflag needs to be set to true.
The "Activate Account" custom button from Ribbon Workbench only shows when Customer Type (bf_customertype_ = 'B2B' (979580001)
See screenshots below of the UI:
Can anyone share sample code that would achieve the storing of the variables shown above? I just need some help getting started...
Thanks in advance!