Hey,
Solved! Go to Solution.
Pretty simple: when they click the button, write the most recently clicked asset URL to a hidden field.
/*
wherever you first know the clicked document URL
assume it’s stored in the variable `currentDocumentURL`
*/
MktoForms2.whenReady(function(readyForm){
readyForm.addHiddenFields({
lastDownloadURL: currentDocumentURL
});
});
Pretty simple: when they click the button, write the most recently clicked asset URL to a hidden field.
/*
wherever you first know the clicked document URL
assume it’s stored in the variable `currentDocumentURL`
*/
MktoForms2.whenReady(function(readyForm){
readyForm.addHiddenFields({
lastDownloadURL: currentDocumentURL
});
});