Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Gravity Perks // GP Copy Cat // Modify Copied Value
<script type="text/javascript">
// me@gravitywiz.com => gravitywiz.com
gform.addFilter( 'gppc_copied_value', function( value, $elem, data ) {
if( data.target == 2 && value ) {
value = value.split( '@' )[1];
}
return value;
} );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.