Created
October 25, 2024 17:42
-
-
Save mahmoodchowdhury/4b3a5b6da7486b25194c3d3e9409252c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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