1) Open up console and paste in following…
gwChangeFieldId = function( currentId, newId ) {
for( var i = 0; i < form.fields.length; i++ ) {
if( form.fields[i].id == currentId ) {
form.fields[i].id = newId;
jQuery( '#field_' + currentId ).attr( 'id', 'field_' + newId );
if( form.fields[i].inputs ) {
for( var j = 0; j < form.fields[i].inputs.length; j++ ) {
form.fields[i].inputs[j].id = form.fields[i].inputs[j].id.replace( currentId + '.', newId + '.' );
}
}
return 'Success!';
}
}
return 'Failed.'
}
Then paste in the following to update the IDs (current ID is first parameter, desired ID is the second
gwChangeFieldId( 4, 12 );
Finally, save your updates 👍🏼
Kudos to: https://gravitywiz.com/changing-your-gravity-forms-field-ids/
