Hey guys,
We're currently hitting a bit of a problem with may be some built in GravityForms data validation code biting us in the rear. Hoping you'll know ...
In short, what we're doing when building a form is adding a class name to a certain field that we're using (via the built in hook) and populating that dropdown's value all ajaxy-ish based on the selection from a previous dropdown, like so:
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function($){
$('li.rw_school_dropdown select').change(function(){
$.ajax({
url : '<?php bloginfo('url'); ?>',
data : {
action : 'get_degrees_options_from_school_id',
school_id : $(this).val()
},
dataType: 'text',
success : function( data ){
console.log( data );
$('li.rw_degree_dropdown select').html( data );
}
});
});
});
</script>
and it's working great! The second field gets populated properly, and on single-page forms the data we're catching at gform_post_submission is good, and the field has the proper value from the dynamically loaded dropdown.
However, on multi-page forms, with the dropdowns on page 1 the form, it seems that the value doesn't get carried across to the gform_post_submission hook ... my first guess is that you guys may be running some sort of data validation, making sure that the option selected by the dropdown select box matches one of those available for the form in the DB? As we're populating it dynamically from an alternate data source, of course it's not going to match, and therefore gets filtered out?
Is there any way that we can get the data we want? Do you have any idea why it's getting snagged away?