_iub.cons_instructions.push(["submit", { form: { selector: document.getElementById('new_user'), map: { subject: { first_name: 'user[user_profile_attributes][firstname]', last_name: 'user[user_profile_attributes][lastname]', email: 'user[email]', }, preferences: { sign_up: 'send_privacy', newsletter: '', contact: '', edit_userdata: '' } } }, consent: { legal_notices: [ { identifier: "privacy_policy", }, { identifier: 'cookie_policy', }, ] } }, { success: function(response) { console.log(response); window.location.href = ''; }, error: function(response) { console.log(response); window.location.href = ''; } } ]);