Skip to content

Instantly share code, notes, and snippets.

@reachkamrul
Last active November 10, 2022 03:49
Show Gist options
  • Save reachkamrul/e645f1be3de812284caa229682553dda to your computer and use it in GitHub Desktop.
Save reachkamrul/e645f1be3de812284caa229682553dda to your computer and use it in GitHub Desktop.
$urlValue = 'http://google.com/?url=';
$fieldName = 'url';
$form.find('input[name="'+$fieldName+'"]').on('change, keyup', function($fieldValue){
$fieldValue = jQuery(this).val();
$url = $urlValue+$fieldValue;
$form.on('fluentform_submission_success', function(){
window.open($url, 'name');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment