After digging a little deeper, I found that there is an action hook in Gravity Forms called gform_pre_submission
. This allows me to modify a posted value before creating an entry or running the confirmation (see documentation).
After that it was pretty basic:
add_action( 'gform_pre_submission_11', 'pre_submission_handler' );
function pre_submission_handler( $form ) {
$_POST['input_7'] = urlencode(rgpost( 'input_7' ));
}
This targets form ID 11 and replaces field 7 with an urlencoded version of field 7.
Job done 🙂
Related Posts:
- use query string in URL to display content on the page
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- how to make URL link query string
- Encode URL for WhatsApp “click to chat” without loosing accented characters
- How to encode correclty an url with the char “&” for an email?
- wp-login.php ampersand in url results in 404
- Modify WordPress to not replace + (plus) characters from URLs?
- How to use query string in URL to display content on the wordpress page
- Unable to Retrieve Query Parameters Passed in URL
- Allow question marks (?) in WordPress permalinks
- How do you retrieve a post by slug name through REST API?
- Why “?v=hash” is added to my URLs? [closed]
- Detecting a WordPress URL without doing a full HTTP GET?
- How does WordPress generate URL slugs?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Change default URL path (/blog/) of blog posts
- Difference between esc_url() and esc_url_raw()
- How to deal with WordPress on localhost
- Problem with guids and absolute links
- Encode text string being appended as query to URL [closed]
- How to convert the file path to a URL of the same file?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Why is WordPress saving full-urls to the database?
- Get taxonomy slug from url
- Load images with http urls inside https post
- Remove All Query Arg
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- How to remove /index.php/ from URL’s
- Run WordPress frontend and backend in different domains
- How to set global variable in functions.php
- Force the Website URL to Include “www” and to be Upper Case?
- How to remove “http://” When Echoing URL?
- Change logo url link
- WordPress and $_GET Params
- Can’t login after my site was moved to a new server
- WPML Get url without outputting
- List of default WordPress URLs
- Redirect to post after submission with Gravity Forms? [closed]
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Unable to load static front page on home url
- Force home page to be https?
- Why WordPress automatically removes http from the url of my website’s sub domain?
- add_query_arg() One Key with multiple values
- Weird: /?name in URL leads to blog
- I am Looking to append URL Parameter to all URLs
- How do I amend the fixed “author” part in the URL?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Dynamic URL generates dynamic content
- Moving wp-content outside of web root?
- Pages redirected to attachment post
- How to increase the character limit for post name of 200?
- Generate one time URL
- In Settings>>General I am missing some fields
- Passing & Reading URL Parameters with URL re-writing
- Change homepage url
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- Is dynamic URL possible in WordPress
- Adding target and _blank as it’s value to the allowedtags
- How to update media links in WordPress after migration?
- permalink for category pages and posts
- Accessing the Current URL in a Text Widget for a Facebook Share Button?
- Is ‘name’ a reserved word in URL’s?
- get_site_url is not returning anything?
- Check what is at URI (post, archive, etc…)
- Add custom URLs to WordPress’s XML sitemap
- How to get “extended” path info from URL in a plugin
- Concatenate site_url and string doesn’t work
- add_rewrite_rule not working for language specific characters
- Get url from file uploaded in Media Library
- Query string becomes encoded when a static page is used as homepage
- How to create a custom page base on URL for WordPress?
- How to make menu items active based on hash
- Use image url with add_image_size
- Multiple domain names for one site
- How to always rewrite author archive page URL even if the author does not have a post
- How can I change all links on pages to point to a different domain from where the site is hosted?
- Best way of removing emoji support from url / slug only
- Allow UTF-8 characters in the user slug part of URL
- WordPress converting ../url to http://../url
- Password protected page Hash url
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- Remove site root trailing slash
- Change gravity forms confirmation redirect query string to include entry id [closed]
- home_url(); showing current page instead of site address
- Why ids in urls don’t work but slugs do?
- URL parsing – what is it?
- Changing my site url from azure.net to custom domain
- Remove / from www.example.com/ [closed]
- Components used in Themes and Plugins: How to get file URL?
- How do I override the emoji url?
- Site broken after using URL Change in Admin
- Can URL remain the same if migrating from Drupal?
- How to create a page for authors? like www.myblog.com/author/