Registro de Inversionista

Coloque los archivos aquí o haga clic para seleccionar el archivo.

{%=file.name%} Processing...
{% } %}
'); jQuery('#fb_form_2-0 .dfb_ai_output').find('.ai_error').html(response.error.message); jQuery('#fb_form_2-0 .dfb_ai_output').removeClass('hidethis'); jQuery('#fb_form_2-0 .ai_loading').addClass('hidethis'); return; } jQuery('#fb_form_2-0 .ai_loading').addClass('hidethis'); if (form_ai_spend >= 10) { jQuery('#fb_form_2-0').addClass('hidethis'); return; } var ai_response = response.data.ai_response jQuery('.dfb_ai_output').html(''); if (ai_settings['form_ai_output_to_field'] == 'on') { var outputField = ai_settings['form_ai_output_field']; var outputFieldType = ai_settings['form_ai_output_to_field_type']; switch (outputFieldType) { case 'text': case 'textarea': case 'number': jQuery('#fb_form_2-0 #'+outputField+'').val(response.data.ai_response); break; case 'select': var selectItems = ai_response.replace(new RegExp('\r?\n','g'), ''); var selectItems = selectItems.replace("\\\"", "\""); //var selectItems = JSON.parse(selectItems); function testJSON(selectItems) { if (typeof selectItems !== "string") { return false; } try { JSON.parse(selectItems); return true; } catch (error) { return false; } } if (testJSON(selectItems) == true) { var selectItems = JSON.parse(selectItems); jQuery('#fb_form_2-0 [name="'+outputField+'"] option').each(function() { const optionValue = jQuery(this).val(); const optionText = jQuery(this).text().trim(); if (optionValue === '' && optionText === '') { jQuery(this).remove(); } }); jQuery('#fb_form_2-0 [name="'+outputField+'"] option').first().prop('selected', true); jQuery.each(selectItems, function (i, item) { if(item != ''){ jQuery('#fb_form_2-0 [name="'+outputField+'"]').append(jQuery('