Going to close this and answer myself.
Apparently, there is something wrong with the way that GFFormsModel::update_lead_field_value truncates fields. I was unable to get this to work.
Instead – I opted to use a direct WP insert (with if elseif etc…) – like so :
$csql = $wpdb->insert("wp_rg_lead_detail", array("id" => NULL,"lead_id" => $lead,"form_id" => $form,"field_number" => "154","value" => 'value'));
Not what I wanted to do, but hopefully this will save anyone some time and effort if they run into the same issue with this model.
Related Posts:
- How can I get $id variable in widget’s form function?
- Refresh page after form action
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- Add new user : make the fields First Name and Last name required
- How to call WordPress functions from a form processing script
- what is the meaning of settings_fields()
- update_post_meta for custom field not working upon form submission
- WordPress registration and contact form 7 [closed]
- Gravity Forms – Using a Form to Pre-populate A Gravity Form [closed]
- Ninja form Redirect depending on text field content [closed]
- WordPress upload_mimes not working for front-end uploads of 3D files
- Ajax not working properly
- Having a Function Inside of the Loop
- Removing custom meta data
- Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data
- wp_nonce_field is breaking form for reasons unknown
- Contact Form 7 If Condition
- How to properly refresh page after form action?
- Init action and refresh page after form action
- dynamic enquiry form [closed]
- This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise
- Problems adding a new field to product in cart
- Postback redirect through add_action is not triggered
- Button click counter for login user
- How to change form action of wp-login page with a function
- WordPress Ajaxifying not working properly
- Sending Messages Back to the Template After Processing?
- us states dropdown function and echo in theme template files
- Adding custom field in menu options [duplicate]
- Will my WordPress site become vulnerable after adding this functions which allows more HTML tags for subscribers?
- Help finishing script to export WP user data when form submitted
- Directing to functions.php the correct way
- WordPress Custom wp mail template return full template
- Get all users from role and add to dropdown (select) – wordpress, javascript
- Can’t find function which is called in a wordpress theme
- CF7 Remove Comma from ‘select’ ‘radio’ and ‘checkbox’ outouts
- Adding a second email address to a completed order in WooCommerce [closed]
- Possible to search by author name with default WordPress search function?
- Breadcrumbs showing Parent and Child Pages
- Influence of WordPress functions on site speed
- Is it possible to override this function/class in a child theme?
- When new user register then add new user role
- Change meta tags programatically
- Remove bulk actions based on user role or capabilities
- Set first oembed in post to a global variable or function
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Use a function to update post meta based on other post meta
- wp_delete_attachment
- Adding body class when post contains a specific shortcode
- Displaying Widgets
- Woocommerce checkout field maxlength, make input number field only (postcode)
- My simple custom shortcode is not longer working (possibly due to upgrade to WordPress 4.4 ?)
- PHP files included in functions.php don’t seem to work
- Register and enqueue style.css custom theme
- How To Remove Duplicate Menu Locations
- Show top commenters without using a plugin
- WordPress shortcode attributes for database SELECT?
- How to get membership level for specific user email
- What do the schemes login, login_post, admin, and relative mean?
- Backstretch.js and thumbnail sizes to reduce loading time
- Child theme within a child theme?
- Featured Image Thumbnail Creation
- How do display most popular post from a year earlier to the day?
- Updating Media Published Date When Parent Post Is Modified in WordPress
- WP Ajax Function Always Returning undefined
- How can I grab the video id of youtube?
- Creating A New Admin Menu Tab For Theme Options
- Passing variable as add_shortcode argument
- Incorrect redirect after commenting
- Run wp_kses_decode_entities on atom feed?
- Function extending with if query in functions.php
- Turn get_posts as string into an array for use in theme admin options
- current_user_can comma list vs OR (||) list
- Why get_user_by() doesn’t work in my code?
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- What is wrong with code added to functions.php to selectively show styles based on login state
- Problem with calling custom function in a foreach loop
- Changing where my author box is printed
- Different methods of adding menu support to custom theme
- Function to insert missing image size attributes into img tags
- functions.php return custom text
- Creating multiple category drop down
- Disable trim in WordPress
- WordPress Categories: Function using custom SQL to return array of specific category IDs
- Change category display name function
- Customizing the wp_video_shortcode output with add_filter
- Writing a function for WP Cron to run a SQL command daily
- Custom Function.PHP Code Not Working on One Site
- How Can I Concatenate A String With One Of My Custom Field Value Before Saving The Post?
- add product thumbnail to checkout page only and include variation name
- Lost Your password Hook Not Showing Up
- Function/way to redirect to specific page whenever a specific text occurs on homepage?
- Get child-pages slugs of current page into js-file
- Frontend Feature image upload not work
- Display page number on custom page title function
- Automatic add space if user enters number(any digit)
- Adding stick post button to edit post page
- Filter to strip unnecessary attributes
- get_post_class() not working well
- Comment turned Invisible