Skip to content

Instantly share code, notes, and snippets.

@mahmoodchowdhury
Created October 25, 2024 17:42
Show Gist options
  • Save mahmoodchowdhury/4b3a5b6da7486b25194c3d3e9409252c to your computer and use it in GitHub Desktop.
Save mahmoodchowdhury/4b3a5b6da7486b25194c3d3e9409252c to your computer and use it in GitHub Desktop.
jQuery(document).ready(function($) {
// Check if the hidden field for referral source exists
var referralSourceField = $('input[name="referral_source"]');
if (referralSourceField.length > 0) {
// Populate the hidden field with the referral source value
referralSourceField.val(referralSourceData.referralSource);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment