// update the model
update: function(){
+ // Need to grab all of the custom field data and serialize it here first.
+ // For some reason this is not available after the newRegistrant is added
+ // to the collection.
+ var customFieldData = this.$( 'form.attendee-cf-form-' + this.model.get('id') ).serialize();
+
var modelId = this.model.get( 'id' );
var fname = this.$('.reg_fname').val().trim();
var lname = this.$('.reg_lname').val().trim();
state: state,
zip: zip,
country: country,
- reg_time: rTime
+ reg_time: rTime,
+ customFields: customFieldData,
});
this.model.save();
if ( this.model.validationError ) {
return;
}
+ // Need to grab all of the custom field data and serialize it here first.
+ // For some reason this is not available after the newRegistrant is added
+ // to the collection.
var customFieldData = this.$( 'form.attendee-cf-form-new' ).serialize();
// return false;
// update the model
update: function(){
+ // Need to grab all of the custom field data and serialize it here first.
+ // For some reason this is not available after the newRegistrant is added
+ // to the collection.
+ var customFieldData = this.$( 'form.attendee-cf-form-' + this.model.get('id') ).serialize();
+
var modelId = this.model.get( 'id' );
var fname = this.$('.reg_fname').val().trim();
var lname = this.$('.reg_lname').val().trim();
state: state,
zip: zip,
country: country,
- reg_time: rTime
+ reg_time: rTime,
+ customFields: customFieldData,
});
this.model.save();
if ( this.model.validationError ) {
return;
}
+ // Need to grab all of the custom field data and serialize it here first.
+ // For some reason this is not available after the newRegistrant is added
+ // to the collection.
var customFieldData = this.$( 'form.attendee-cf-form-new' ).serialize();
// return false;