function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marc D BehrMarc D Behr 

Read form data from MC Smart Capture

Question... I have a CloudPage with a smart capture section. I am using a RetrieveSalesforceObjects() call to pre-populate the data on the page, but now I want to update the data using the UpdateSingleSalesforceObject() call when the user presses the Submit button. What I am trying to figure out is now can I read the data that the user entered on the form to add it to the UpdateSingleSalesforceObject() call? If I hardcode values, Salesforce gets updated, but I just don't see how to read the form data.
Does anybody have any pointers?
Ransom BarberRansom Barber
I don't know if you still need this, but I create a Data Extension with a hidden TempID set by a random value generated by AMPScript in the Smart Capture, which sends the email address entered into the text field to the DE. Upon submission, I redirect to a thank you page that runs a lookup on that DE. Can you not then use the lookup to update using  UpdateSingleSalesforceObject()?