..., 'es' => ... ] * help optional [ 'en' => ..., 'es' => ... ] * options for choice / multi: [ [ 'value' => ..., 'label' => [en, es] ] ] * required default true * show_if list of [ key, op, value ] that must all hold; op = | != | in | not_in * stage short | contact | final | full * sensitive true for values that are encrypted and never leave the site by default * legacy true for 2.6 keys that are kept for display and export but no longer asked * fields for repeat: nested question definitions * * @package mortgage_application */ defined( 'ABSPATH' ) || exit; if ( ! function_exists( 'mapp_t' ) ) { /** * Build a bilingual label. * * @param string $en English. * @param string $es Spanish. * @return array */ function mapp_t( $en, $es ) { return array( 'en' => $en, 'es' => $es, ); } } if ( ! function_exists( 'mapp_opts' ) ) { /** * Build an options list from value => [en, es] pairs. * * @param array $pairs Value => [ en, es ]. * @return array */ function mapp_opts( $pairs ) { $out = array(); foreach ( $pairs as $value => $labels ) { $out[] = array( 'value' => (string) $value, 'label' => mapp_t( $labels[0], $labels[1] ), ); } return $out; } } $yes_no = mapp_opts( array( 'Yes' => array( 'Yes', 'Sí' ), 'No' => array( 'No', 'No' ), ) ); $is_purchase = array( 'purpose', '=', 'Home Purchase' ); $is_refi = array( 'purpose', '=', 'Home Refinance' ); /* * Short application, contact and final questions. */ $questions = array( // --- Start --------------------------------------------------------------- 'purpose' => array( 'type' => 'choice', 'stage' => 'short', 'label' => mapp_t( 'What are you looking to do?', '¿Qué desea hacer?' ), 'options' => array( array( 'value' => 'Home Purchase', 'label' => mapp_t( 'Buy a home', 'Comprar una casa' ), ), array( 'value' => 'Home Refinance', 'label' => mapp_t( 'Refinance my home', 'Refinanciar mi casa' ), ), ), ), // --- Property ------------------------------------------------------------ 'zip_code' => array( 'type' => 'address', 'stage' => 'short', 'label' => mapp_t( 'Where is the property?', '¿Dónde está la propiedad?' ), 'label_by' => array( 'Home Purchase' => mapp_t( 'Where are you looking to buy?', '¿Dónde busca comprar?' ), 'Home Refinance' => mapp_t( 'What is the property address?', '¿Cuál es la dirección de la propiedad?' ), ), 'help_by' => array( 'Home Purchase' => mapp_t( 'A city or ZIP code is fine if you have not picked a home yet.', 'Una ciudad o código postal está bien si aún no ha elegido una casa.' ), ), 'components' => array( 'street' => 'property_street', 'city' => 'property_city', 'state' => 'property_state', 'zip' => 'property_zip', 'county' => 'property_county' ), ), 'home_description' => array( 'type' => 'choice', 'stage' => 'short', 'label' => mapp_t( 'What type of property is it?', '¿Qué tipo de propiedad es?' ), 'options' => mapp_opts( array( 'Single Family' => array( 'Single-family home', 'Casa unifamiliar' ), 'Townhouse' => array( 'Townhouse', 'Casa en hilera (townhouse)' ), 'Condominium' => array( 'Condo', 'Condominio' ), 'Multi-Family' => array( 'Multi-family (2–4 units)', 'Multifamiliar (2–4 unidades)' ), 'Manufactured' => array( 'Manufactured home', 'Casa prefabricada' ), ) ), ), 'property_use' => array( 'type' => 'choice', 'stage' => 'short', 'label' => mapp_t( 'How will you use it?', '¿Cómo la usará?' ), 'options' => mapp_opts( array( 'Primary Residence' => array( 'Primary residence', 'Residencia principal' ), 'Secondary Home' => array( 'Second home', 'Segunda vivienda' ), 'Investment Property' => array( 'Investment property', 'Propiedad de inversión' ), ) ), ), // --- Purchase ------------------------------------------------------------ 'loan_purpose_purchase' => array( 'type' => 'choice', 'stage' => 'short', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'When do you plan to buy?', '¿Cuándo planea comprar?' ), 'options' => mapp_opts( array( 'Immediately: Signed a Purchase Agreement' => array( 'I have a signed purchase agreement', 'Tengo un contrato de compra firmado' ), 'ASAP: Found a House/Offer Pending' => array( 'I found a home / offer pending', 'Encontré una casa / oferta pendiente' ), 'Within 30 Days' => array( 'Within 30 days', 'En 30 días' ), '2 - 3 Months' => array( '2–3 months', '2–3 meses' ), '3 - 6 Months' => array( '3–6 months', '3–6 meses' ), '6+ Months' => array( '6+ months', 'Más de 6 meses' ), 'No Time Frame; I am Researching Options' => array( 'Just researching', 'Solo estoy investigando' ), ) ), ), 'first_time_buyer' => array( 'type' => 'yesno', 'stage' => 'short', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'Is this your first home?', '¿Es su primera casa?' ), 'options' => $yes_no, ), 'purchase_price' => array( 'type' => 'currency', 'stage' => 'short', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'About how much is the home?', '¿Aproximadamente cuánto cuesta la casa?' ), 'help' => mapp_t( 'An estimate is fine.', 'Un estimado está bien.' ), 'min' => 10000, 'max' => 50000000, 'group' => 'purchase_numbers', ), 'down_payment' => array( 'type' => 'currency', 'stage' => 'short', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'How much do you plan to put down?', '¿Cuánto planea dar de pago inicial?' ), 'help' => mapp_t( 'Include savings and any gift funds.', 'Incluya sus ahorros y cualquier donación.' ), 'min' => 0, 'max' => 50000000, 'percent_of' => 'purchase_price', 'group' => 'purchase_numbers', ), // --- Refinance ----------------------------------------------------------- 'refi_goal' => array( 'type' => 'choice', 'stage' => 'short', 'show_if' => array( $is_refi ), 'label' => mapp_t( 'What is your main goal?', '¿Cuál es su objetivo principal?' ), 'options' => mapp_opts( array( 'Lower payment' => array( 'Lower my monthly payment', 'Bajar mi pago mensual' ), 'Cash out' => array( 'Take cash out', 'Obtener efectivo' ), 'Shorter term' => array( 'Pay it off sooner', 'Pagarla más rápido' ), 'Remove PMI' => array( 'Remove mortgage insurance', 'Eliminar el seguro hipotecario' ), 'Consolidate debt' => array( 'Consolidate debt', 'Consolidar deudas' ), ) ), ), 'home_value' => array( 'type' => 'currency', 'stage' => 'short', 'show_if' => array( $is_refi ), 'label' => mapp_t( 'What is the home worth?', '¿Cuánto vale la casa?' ), 'help' => mapp_t( 'An estimate is fine.', 'Un estimado está bien.' ), 'min' => 10000, 'max' => 50000000, 'estimate' => 'home_value', 'group' => 'refi_numbers', ), 'mortgage_balance' => array( 'type' => 'currency', 'stage' => 'short', 'show_if' => array( $is_refi ), 'label' => mapp_t( 'How much do you still owe?', '¿Cuánto debe todavía?' ), 'help' => mapp_t( 'Enter 0 if the home is paid off.', 'Escriba 0 si la casa está pagada.' ), 'min' => 0, 'max' => 50000000, 'group' => 'refi_numbers', ), 'loan_interest_rate' => array( 'required' => false, 'type' => 'percent', 'stage' => 'short', 'show_if' => array( $is_refi, array( 'mortgage_balance', '!=', '0' ) ), 'label' => mapp_t( 'What is your current interest rate?', '¿Cuál es su tasa de interés actual?' ), 'help' => mapp_t( 'Skip it if you are not sure.', 'Omítalo si no está seguro.' ), 'min' => 0, 'max' => 25, 'group' => 'refi_rate', ), 'current_loan_type' => array( 'type' => 'choice', 'stage' => 'short', 'show_if' => array( $is_refi, array( 'mortgage_balance', '!=', '0' ) ), 'label' => mapp_t( 'What kind of loan do you have now?', '¿Qué tipo de préstamo tiene ahora?' ), 'options' => mapp_opts( array( 'Conventional' => array( 'Conventional', 'Convencional' ), 'FHA' => array( 'FHA', 'FHA' ), 'VA' => array( 'VA', 'VA' ), 'USDA' => array( 'USDA', 'USDA' ), 'Not sure' => array( 'Not sure', 'No estoy seguro' ), ) ), ), 'additional_funds' => array( 'type' => 'currency', 'stage' => 'short', 'show_if' => array( $is_refi, array( 'refi_goal', 'in', array( 'Cash out', 'Consolidate debt' ) ) ), 'label' => mapp_t( 'How much cash would you like to take out?', '¿Cuánto efectivo le gustaría obtener?' ), 'min' => 0, 'max' => 50000000, ), // --- Borrower profile ---------------------------------------------------- 'credit_rating' => array( 'type' => 'choice', 'stage' => 'short', 'label' => mapp_t( 'How would you rate your credit?', '¿Cómo calificaría su crédito?' ), 'help' => mapp_t( 'This does not affect your credit score.', 'Esto no afecta su puntaje de crédito.' ), 'options' => mapp_opts( array( 'Excellent' => array( 'Excellent (720+)', 'Excelente (720+)' ), 'Good' => array( 'Good (660–719)', 'Bueno (660–719)' ), 'Average' => array( 'Fair (620–659)', 'Regular (620–659)' ), 'Below Average' => array( 'Below average (580–619)', 'Bajo el promedio (580–619)' ), 'Poor' => array( 'Poor (below 580)', 'Malo (menos de 580)' ), ) ), ), 'military' => array( 'type' => 'yesno', 'stage' => 'short', 'label' => mapp_t( 'Have you or your spouse served in the U.S. military?', '¿Usted o su cónyuge han servido en las fuerzas armadas de EE. UU.?' ), 'help' => mapp_t( 'Veterans may qualify for a VA loan with no down payment.', 'Los veteranos pueden calificar para un préstamo VA sin pago inicial.' ), 'options' => $yes_no, ), 'employment_status' => array( 'type' => 'choice', 'stage' => 'short', 'label' => mapp_t( 'What is your work situation?', '¿Cuál es su situación laboral?' ), 'options' => mapp_opts( array( 'Employed' => array( 'Employed', 'Empleado' ), 'Self-Employed' => array( 'Self-employed', 'Trabajo por cuenta propia' ), 'retired' => array( 'Retired', 'Jubilado' ), 'Other' => array( 'Other', 'Otro' ), ) ), 'group' => 'income', ), 'monthly_income' => array( 'type' => 'currency', 'stage' => 'short', 'label' => mapp_t( 'What is your household income per month, before taxes?', '¿Cuál es el ingreso mensual de su hogar, antes de impuestos?' ), 'help' => mapp_t( 'Add up income for everyone who will be on the loan.', 'Sume los ingresos de todas las personas que estarán en el préstamo.' ), 'min' => 0, 'max' => 10000000, 'group' => 'income', ), // --- Contact ------------------------------------------------------------- 'first_name' => array( 'type' => 'text', 'stage' => 'contact', 'label' => mapp_t( 'First name', 'Nombre' ), 'autocomplete' => 'given-name', ), 'last_name' => array( 'type' => 'text', 'stage' => 'contact', 'label' => mapp_t( 'Last name', 'Apellido' ), 'autocomplete' => 'family-name', ), 'email' => array( 'type' => 'email', 'stage' => 'contact', 'label' => mapp_t( 'Email', 'Correo electrónico' ), 'autocomplete' => 'email', ), 'phone_number' => array( 'type' => 'tel', 'stage' => 'contact', 'label' => mapp_t( 'Mobile phone', 'Teléfono celular' ), 'autocomplete' => 'tel-national', ), 'consent_tcpa' => array( 'type' => 'consent', 'stage' => 'contact', 'required' => false, 'label' => mapp_t( 'I agree that {company} and {lo_name} may call and text me about my request at the number above, including by automated means. Consent is not a condition of any purchase. Message and data rates may apply; reply STOP to opt out.', 'Acepto que {company} y {lo_name} me llamen y envíen mensajes de texto sobre mi solicitud al número anterior, incluso por medios automatizados. El consentimiento no es condición para ninguna compra. Pueden aplicarse tarifas de mensajes y datos; responda STOP para cancelar.' ), ), // --- Final short-app questions (after the numbers) ----------------------- 'mailing_address' => array( 'type' => 'address', 'stage' => 'final', 'show_if' => array( array( 'mailing_same_as_property', '!=', 'Yes' ) ), 'label' => mapp_t( 'What is your current home address?', '¿Cuál es la dirección de su casa actual?' ), 'autocomplete' => 'street-address', 'components' => array( 'street' => 'mailing_street', 'city' => 'mailing_city', 'state' => 'mailing_state', 'zip' => 'mailing_zip', 'county' => 'mailing_county' ), ), 'purchase_year' => array( 'required' => false, 'type' => 'year', 'stage' => 'final', 'show_if' => array( $is_refi ), 'label' => mapp_t( 'What year did you buy the home?', '¿En qué año compró la casa?' ), 'min' => 1900, ), 'second_mortgage' => array( 'type' => 'yesno', 'stage' => 'final', 'show_if' => array( $is_refi, array( 'mortgage_balance', '!=', '0' ) ), 'label' => mapp_t( 'Do you have a second mortgage or home equity line?', '¿Tiene una segunda hipoteca o línea de crédito sobre el valor de la casa?' ), 'options' => $yes_no, ), 'late_payments' => array( 'type' => 'choice', 'stage' => 'final', 'show_if' => array( $is_refi, array( 'mortgage_balance', '!=', '0' ) ), 'label' => mapp_t( 'Late mortgage payments in the past 12 months?', '¿Pagos de hipoteca atrasados en los últimos 12 meses?' ), 'options' => mapp_opts( array( '0' => array( 'None', 'Ninguno' ), '1' => array( '1', '1' ), '2+' => array( '2 or more', '2 o más' ), ) ), ), 'bankruptcy' => array( 'type' => 'yesno', 'stage' => 'final', 'label' => mapp_t( 'Any bankruptcy in the past 7 years?', '¿Alguna bancarrota en los últimos 7 años?' ), 'options' => $yes_no, ), 'foreclosure' => array( 'type' => 'yesno', 'stage' => 'final', 'label' => mapp_t( 'Any foreclosure in the past 7 years?', '¿Alguna ejecución hipotecaria en los últimos 7 años?' ), 'options' => $yes_no, ), 'age_62_plus' => array( 'type' => 'yesno', 'stage' => 'final', 'show_if' => array( $is_refi, array( 'property_use', '=', 'Primary Residence' ) ), 'label' => mapp_t( 'Are you 62 or older?', '¿Tiene 62 años o más?' ), 'options' => $yes_no, ), 'reverse_mortgage' => array( 'type' => 'yesno', 'stage' => 'final', 'show_if' => array( array( 'age_62_plus', '=', 'Yes' ) ), 'label' => mapp_t( 'Would you like to learn about a reverse mortgage?', '¿Le gustaría saber más sobre una hipoteca inversa?' ), 'options' => $yes_no, ), 'agent_contact' => array( 'type' => 'yesno', 'stage' => 'final', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'Are you working with a real estate agent?', '¿Está trabajando con un agente de bienes raíces?' ), 'options' => mapp_opts( array( 'No' => array( 'No — I would like an introduction', 'No — me gustaría que me presenten a uno' ), 'Yes' => array( 'Yes, I have an agent', 'Sí, tengo un agente' ), 'Not needed' => array( 'No, and I do not need one', 'No, y no lo necesito' ), ) ), ), 'agree_access' => array( 'type' => 'consent', 'stage' => 'final', 'label' => mapp_t( 'I certify that the information I provided is true and complete, and I agree to the terms below.', 'Certifico que la información que proporcioné es verdadera y completa, y acepto los términos a continuación.' ), 'terms_option' => 'disclaimer_field_1', ), // --- Derived (not asked; filled on save) --------------------------------- 'mailing_same_as_property' => array( 'type' => 'derived' ), 'loan_amount' => array( 'type' => 'derived' ), 'cash_out_box' => array( 'type' => 'derived' ), 'has_FHA' => array( 'type' => 'derived' ), 'use_va_loans' => array( 'type' => 'derived' ), 'rate_type' => array( 'type' => 'derived' ), 'age' => array( 'type' => 'derived' ), 'address' => array( 'type' => 'derived' ), 'city' => array( 'type' => 'derived' ), 'state' => array( 'type' => 'derived' ), 'zip_code_only' => array( 'type' => 'derived' ), // --- 2.6 keys kept for display and export, no longer asked --------------- 'desired_rate_type' => array( 'type' => 'choice', 'legacy' => true, 'label' => mapp_t( 'Desired Type of Rate', 'Tipo de tasa deseado' ), ), 'loan_vendor' => array( 'type' => 'text', 'legacy' => true, 'label' => mapp_t( '1st Mortgage With', 'Primera hipoteca con' ), ), 'refinanced_before' => array( 'type' => 'text', 'legacy' => true, 'label' => mapp_t( 'Have you ever refinanced before?', '¿Ha refinanciado antes?' ), ), 'proof_of_income' => array( 'type' => 'yesno', 'legacy' => true, 'label' => mapp_t( 'Can you show proof of your income?', '¿Puede comprobar sus ingresos?' ), ), ); /* * Full 1003 (URLA) questions. Asked only when the borrower chooses to keep * going after the short app. Borrower questions are generated a second time * with a co_ prefix for the co-borrower. */ $borrower_full = array( 'middle_name' => array( 'type' => 'text', 'required' => false, 'label' => mapp_t( 'Middle name', 'Segundo nombre' ), 'autocomplete' => 'additional-name', 'section' => 'personal', ), 'suffix' => array( 'type' => 'text', 'required' => false, 'label' => mapp_t( 'Suffix (Jr., Sr., III)', 'Sufijo (Jr., Sr., III)' ), 'autocomplete' => 'honorific-suffix', 'section' => 'personal', ), 'dob' => array( 'type' => 'date', 'label' => mapp_t( 'Date of birth', 'Fecha de nacimiento' ), 'autocomplete' => 'bday', 'section' => 'personal', ), 'ss_number' => array( 'type' => 'ssn', 'sensitive' => true, 'label' => mapp_t( 'Social Security number', 'Número de Seguro Social' ), 'help' => mapp_t( 'Encrypted and used only to process your application.', 'Cifrado y usado solo para procesar su solicitud.' ), 'section' => 'personal', ), 'citizenship' => array( 'type' => 'choice', 'label' => mapp_t( 'Citizenship', 'Ciudadanía' ), 'options' => mapp_opts( array( 'USCitizen' => array( 'U.S. citizen', 'Ciudadano de EE. UU.' ), 'PermanentResidentAlien' => array( 'Permanent resident', 'Residente permanente' ), 'NonPermanentResidentAlien' => array( 'Non-permanent resident', 'Residente no permanente' ), ) ), 'section' => 'personal', ), 'marital_status' => array( 'type' => 'choice', 'label' => mapp_t( 'Marital status', 'Estado civil' ), 'options' => mapp_opts( array( 'Married' => array( 'Married', 'Casado(a)' ), 'Separated' => array( 'Separated', 'Separado(a)' ), 'Unmarried' => array( 'Unmarried (single, divorced, widowed)', 'No casado(a) (soltero, divorciado, viudo)' ), ) ), 'section' => 'personal', ), 'dependents_count' => array( 'type' => 'number', 'label' => mapp_t( 'Number of dependents', 'Número de dependientes' ), 'help' => mapp_t( 'Children or others you support. Do not count yourself or a co-borrower.', 'Hijos u otras personas que mantiene. No se cuente a usted ni al cosolicitante.' ), 'min' => 0, 'max' => 20, 'section' => 'personal', ), 'dependents_ages' => array( 'type' => 'text', 'required' => false, 'show_if' => array( array( 'dependents_count', 'gt', '0' ) ), 'label' => mapp_t( 'Ages of dependents', 'Edades de los dependientes' ), 'help' => mapp_t( 'For example: 4, 9', 'Por ejemplo: 4, 9' ), 'section' => 'personal', ), 'current_housing' => array( 'type' => 'choice', 'label' => mapp_t( 'At your current address, do you…', 'En su dirección actual, usted…' ), 'options' => mapp_opts( array( 'Own' => array( 'Own', 'Es dueño' ), 'Rent' => array( 'Rent', 'Renta' ), 'LivingRentFree' => array( 'Live there rent-free', 'Vive allí sin pagar renta' ), ) ), 'section' => 'residence', ), 'current_rent' => array( 'type' => 'currency', 'show_if' => array( array( 'current_housing', '=', 'Rent' ) ), 'label' => mapp_t( 'Monthly rent', 'Renta mensual' ), 'min' => 0, 'section' => 'residence', ), 'years_at_address' => array( 'type' => 'number', 'label' => mapp_t( 'Years at this address', 'Años en esta dirección' ), 'min' => 0, 'max' => 99, 'section' => 'residence', ), 'months_at_address' => array( 'required' => false, 'type' => 'number', 'label' => mapp_t( 'Additional months', 'Meses adicionales' ), 'min' => 0, 'max' => 11, 'section' => 'residence', ), 'former_address' => array( 'type' => 'address', 'show_if' => array( array( 'years_at_address', 'lt', '2' ) ), 'label' => mapp_t( 'Previous address', 'Dirección anterior' ), 'help' => mapp_t( 'Needed when you have lived at your current address less than 2 years.', 'Se necesita si ha vivido en su dirección actual menos de 2 años.' ), 'components' => array( 'street' => 'former_street', 'city' => 'former_city', 'state' => 'former_state', 'zip' => 'former_zip' ), 'section' => 'residence', ), 'former_years' => array( 'type' => 'number', 'show_if' => array( array( 'years_at_address', 'lt', '2' ) ), 'label' => mapp_t( 'Years at previous address', 'Años en la dirección anterior' ), 'min' => 0, 'max' => 99, 'section' => 'residence', ), 'employment' => array( 'type' => 'repeat', 'label' => mapp_t( 'Employment and income', 'Empleo e ingresos' ), 'help' => mapp_t( 'List your current job and any jobs in the past 2 years.', 'Indique su empleo actual y los empleos de los últimos 2 años.' ), // At least one employer when the short app said employed or self-employed. 'min_if' => array( array( 'employment_status', 'in', array( 'Employed', 'Self-Employed' ) ) ), 'min' => 0, 'max' => 6, 'item' => mapp_t( 'Employer', 'Empleador' ), 'section' => 'employment', 'fields' => array( 'employer' => array( 'type' => 'text', 'label' => mapp_t( 'Employer or business name', 'Nombre del empleador o negocio' ) ), 'phone' => array( 'type' => 'tel', 'required' => false, 'label' => mapp_t( 'Employer phone', 'Teléfono del empleador' ) ), 'address' => array( 'type' => 'text', 'required' => false, 'label' => mapp_t( 'Employer address', 'Dirección del empleador' ) ), 'position' => array( 'type' => 'text', 'label' => mapp_t( 'Position or title', 'Puesto o cargo' ) ), 'current' => array( 'type' => 'yesno', 'label' => mapp_t( 'Do you work here now?', '¿Trabaja aquí actualmente?' ), 'options' => $yes_no ), 'start_date' => array( 'type' => 'date', 'label' => mapp_t( 'Start date', 'Fecha de inicio' ) ), 'end_date' => array( 'type' => 'date', 'show_if' => array( array( 'current', '=', 'No' ) ), 'label' => mapp_t( 'End date', 'Fecha de terminación' ) ), 'years_in_line' => array( 'type' => 'number', 'required' => false, 'label' => mapp_t( 'Years in this line of work', 'Años en esta línea de trabajo' ), 'min' => 0, 'max' => 70 ), 'self_employed' => array( 'type' => 'yesno', 'label' => mapp_t( 'Are you the business owner or self-employed?', '¿Es dueño del negocio o trabaja por cuenta propia?' ), 'options' => $yes_no ), 'ownership_25' => array( 'type' => 'yesno', 'show_if' => array( array( 'self_employed', '=', 'Yes' ) ), 'label' => mapp_t( 'Do you own 25% or more?', '¿Es dueño del 25% o más?' ), 'options' => $yes_no, ), 'base' => array( 'type' => 'currency', 'label' => mapp_t( 'Base pay per month', 'Salario base mensual' ), 'help' => mapp_t( 'Paid hourly? Hourly rate × weekly hours × 52 ÷ 12.', '¿Le pagan por hora? Tarifa por hora × horas semanales × 52 ÷ 12.' ), 'min' => 0 ), 'overtime' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Overtime per month', 'Horas extra al mes' ), 'min' => 0 ), 'bonus' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Bonus per month', 'Bonos al mes' ), 'min' => 0 ), 'commission' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Commission per month', 'Comisiones al mes' ), 'min' => 0 ), 'other' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Other pay per month', 'Otros pagos al mes' ), 'min' => 0 ), ), ), 'other_income' => array( 'type' => 'repeat', 'required' => false, 'label' => mapp_t( 'Other income', 'Otros ingresos' ), 'help' => mapp_t( 'Social Security, pension, child support, rental income and similar. Skip this if you have none.', 'Seguro Social, pensión, manutención, ingresos de renta y similares. Omítalo si no tiene.' ), 'min' => 0, 'max' => 8, 'item' => mapp_t( 'Income source', 'Fuente de ingreso' ), 'section' => 'employment', 'fields' => array( 'source' => array( 'type' => 'choice', 'label' => mapp_t( 'Source', 'Fuente' ), 'options' => mapp_opts( array( 'SocialSecurity' => array( 'Social Security', 'Seguro Social' ), 'Pension' => array( 'Pension or retirement', 'Pensión o jubilación' ), 'Disability' => array( 'Disability', 'Discapacidad' ), 'ChildSupport' => array( 'Child support or alimony', 'Manutención o pensión alimenticia' ), 'MilitaryBenefits' => array( 'Military or VA benefits', 'Beneficios militares o de VA' ), 'Other' => array( 'Other', 'Otro' ), ) ), ), 'monthly' => array( 'type' => 'currency', 'label' => mapp_t( 'Amount per month', 'Monto mensual' ), 'min' => 0 ), ), ), 'military_status' => array( 'type' => 'multi', 'show_if' => array( array( 'military', '=', 'Yes' ) ), 'label' => mapp_t( 'Military service (select all that apply)', 'Servicio militar (seleccione todo lo que corresponda)' ), 'options' => mapp_opts( array( 'ActiveDuty' => array( 'Currently serving on active duty', 'Actualmente en servicio activo' ), 'Veteran' => array( 'Retired, discharged or separated', 'Retirado, dado de baja o separado' ), 'ReserveNational' => array( 'Non-activated Reserve or National Guard', 'Reserva o Guardia Nacional no activada' ), 'SurvivingSpouse' => array( 'Surviving spouse', 'Cónyuge sobreviviente' ), ) ), 'section' => 'military', ), 'decl_occupy' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Will you occupy the property as your primary residence?', '¿Ocupará la propiedad como su residencia principal?' ) ), 'decl_prior_ownership' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Have you had an ownership interest in another property in the last 3 years?', '¿Ha sido dueño de otra propiedad en los últimos 3 años?' ) ), 'decl_family_seller' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'Do you have a family or business relationship with the seller?', '¿Tiene una relación familiar o de negocios con el vendedor?' ) ), 'decl_borrowed_funds' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Are you borrowing any money for this transaction (for example, the down payment) that you have not disclosed?', '¿Está pidiendo prestado dinero para esta transacción (por ejemplo, el pago inicial) que no haya declarado?' ) ), 'decl_other_mortgage' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Have you applied or will you apply for another mortgage or new credit before closing?', '¿Ha solicitado o solicitará otra hipoteca o crédito nuevo antes del cierre?' ) ), 'decl_priority_lien' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Will this property be subject to a lien that could take priority over this mortgage (such as a PACE loan)?', '¿Esta propiedad tendrá un gravamen que pueda tener prioridad sobre esta hipoteca (como un préstamo PACE)?' ) ), 'decl_cosigner' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Are you a co-signer or guarantor on any debt not disclosed here?', '¿Es codeudor o garante de alguna deuda no declarada aquí?' ) ), 'decl_judgments' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Are there any outstanding judgments against you?', '¿Hay sentencias judiciales pendientes en su contra?' ) ), 'decl_federal_debt' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Are you delinquent or in default on a federal debt?', '¿Está atrasado o en incumplimiento con una deuda federal?' ) ), 'decl_lawsuit' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Are you a party to a lawsuit with potential personal financial liability?', '¿Es parte de una demanda con posible responsabilidad financiera personal?' ) ), 'decl_deed_in_lieu' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Have you conveyed title to a property in lieu of foreclosure in the past 7 years?', '¿Ha cedido el título de una propiedad en lugar de una ejecución hipotecaria en los últimos 7 años?' ) ), 'decl_short_sale' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Have you completed a pre-foreclosure or short sale in the past 7 years?', '¿Ha completado una venta antes de la ejecución hipotecaria o una venta corta en los últimos 7 años?' ) ), 'decl_foreclosure' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Has a property been foreclosed on in the past 7 years?', '¿Ha tenido una ejecución hipotecaria en los últimos 7 años?' ) ), 'decl_bankruptcy' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'declarations', 'label' => mapp_t( 'Have you declared bankruptcy in the past 7 years?', '¿Se ha declarado en bancarrota en los últimos 7 años?' ) ), 'decl_bankruptcy_types' => array( 'type' => 'multi', 'section' => 'declarations', 'show_if' => array( array( 'decl_bankruptcy', '=', 'Yes' ) ), 'label' => mapp_t( 'Which type of bankruptcy?', '¿Qué tipo de bancarrota?' ), 'options' => mapp_opts( array( 'ChapterSeven' => array( 'Chapter 7', 'Capítulo 7' ), 'ChapterEleven' => array( 'Chapter 11', 'Capítulo 11' ), 'ChapterTwelve' => array( 'Chapter 12', 'Capítulo 12' ), 'ChapterThirteen' => array( 'Chapter 13', 'Capítulo 13' ), ) ), ), 'demo_ethnicity' => array( // Optional by law: the section tells borrowers they are not required to answer. 'required' => false, 'type' => 'multi', 'section' => 'demographics', 'label' => mapp_t( 'Ethnicity', 'Origen étnico' ), 'options' => mapp_opts( array( 'HispanicOrLatino' => array( 'Hispanic or Latino', 'Hispano o latino' ), 'Mexican' => array( 'Mexican', 'Mexicano' ), 'PuertoRican' => array( 'Puerto Rican', 'Puertorriqueño' ), 'Cuban' => array( 'Cuban', 'Cubano' ), 'OtherHispanicOrLatino' => array( 'Other Hispanic or Latino', 'Otro hispano o latino' ), 'NotHispanicOrLatino' => array( 'Not Hispanic or Latino', 'No hispano ni latino' ), 'NotProvided' => array( 'I do not wish to provide this information', 'No deseo proporcionar esta información' ), ) ), ), 'demo_race' => array( 'required' => false, 'type' => 'multi', 'section' => 'demographics', 'label' => mapp_t( 'Race', 'Raza' ), 'options' => mapp_opts( array( 'AmericanIndianOrAlaskaNative' => array( 'American Indian or Alaska Native', 'Indígena americano o nativo de Alaska' ), 'Asian' => array( 'Asian', 'Asiático' ), 'BlackOrAfricanAmerican' => array( 'Black or African American', 'Negro o afroamericano' ), 'NativeHawaiianOrOtherPacificIslander' => array( 'Native Hawaiian or Other Pacific Islander', 'Nativo de Hawái u otras islas del Pacífico' ), 'White' => array( 'White', 'Blanco' ), 'NotProvided' => array( 'I do not wish to provide this information', 'No deseo proporcionar esta información' ), ) ), ), 'demo_sex' => array( 'required' => false, 'type' => 'multi', 'section' => 'demographics', 'label' => mapp_t( 'Sex', 'Sexo' ), 'options' => mapp_opts( array( 'Female' => array( 'Female', 'Femenino' ), 'Male' => array( 'Male', 'Masculino' ), 'NotProvided' => array( 'I do not wish to provide this information', 'No deseo proporcionar esta información' ), ) ), ), ); $shared_full = array( 'has_coborrower' => array( 'type' => 'yesno', 'section' => 'coborrower', 'label' => mapp_t( 'Will anyone else be on the loan with you?', '¿Alguien más estará en el préstamo con usted?' ), 'options' => $yes_no, ), 'co_first_name' => array( 'type' => 'text', 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Co-borrower first name', 'Nombre del cosolicitante' ) ), 'co_last_name' => array( 'type' => 'text', 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Co-borrower last name', 'Apellido del cosolicitante' ) ), 'co_email' => array( 'type' => 'email', 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Co-borrower email', 'Correo del cosolicitante' ) ), 'co_phone' => array( 'type' => 'tel', 'required' => false, 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Co-borrower phone', 'Teléfono del cosolicitante' ) ), 'co_same_address' => array( 'type' => 'yesno', 'options' => $yes_no, 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Does the co-borrower live with you?', '¿El cosolicitante vive con usted?' ) ), 'co_address' => array( 'type' => 'address', 'section' => 'coborrower', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ), array( 'co_same_address', '=', 'No' ) ), 'label' => mapp_t( 'Co-borrower current address', 'Dirección actual del cosolicitante' ), 'components' => array( 'street' => 'co_street', 'city' => 'co_city', 'state' => 'co_state', 'zip' => 'co_zip' ), ), 'assets' => array( 'type' => 'repeat', 'section' => 'assets', 'required' => false, 'label' => mapp_t( 'Bank accounts and assets', 'Cuentas bancarias y activos' ), 'help' => mapp_t( 'Checking, savings, retirement and investment accounts. Gifts go in their own list below. Skip this if you have none.', 'Cuentas de cheques, ahorros, jubilación e inversión. Las donaciones van en su propia lista. Omítalo si no tiene.' ), 'min' => 0, 'max' => 12, 'item' => mapp_t( 'Account', 'Cuenta' ), 'fields' => array( 'type' => array( 'type' => 'choice', 'label' => mapp_t( 'Type', 'Tipo' ), 'options' => mapp_opts( array( 'CheckingAccount' => array( 'Checking', 'Cheques' ), 'SavingsAccount' => array( 'Savings', 'Ahorros' ), 'RetirementFund' => array( 'Retirement (401k, IRA)', 'Jubilación (401k, IRA)' ), 'Stock' => array( 'Stocks or brokerage', 'Acciones o corretaje' ), 'Other' => array( 'Other', 'Otro' ), ) ), ), 'institution' => array( 'type' => 'text', 'label' => mapp_t( 'Bank or institution', 'Banco o institución' ) ), 'value' => array( 'type' => 'currency', 'label' => mapp_t( 'Current balance', 'Saldo actual' ), 'min' => 0 ), 'owner' => array( 'type' => 'choice', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Whose account?', '¿De quién es la cuenta?' ), 'options' => mapp_opts( array( 'Borrower' => array( 'Mine', 'Mía' ), 'CoBorrower' => array( 'Co-borrower', 'Del cosolicitante' ), 'Joint' => array( 'Joint', 'Conjunta' ), ) ), ), ), ), 'liabilities' => array( 'type' => 'repeat', 'section' => 'liabilities', 'required' => false, 'label' => mapp_t( 'Monthly debts', 'Deudas mensuales' ), 'help' => mapp_t( 'Car loans, student loans, credit cards and other debts. Your loan officer will confirm these with your credit report. Skip this if you have none.', 'Préstamos de auto, préstamos estudiantiles, tarjetas de crédito y otras deudas. Su oficial de préstamos las confirmará con su reporte de crédito. Omítalo si no tiene.' ), 'min' => 0, 'max' => 20, 'item' => mapp_t( 'Debt', 'Deuda' ), 'fields' => array( 'type' => array( 'type' => 'choice', 'label' => mapp_t( 'Type', 'Tipo' ), 'options' => mapp_opts( array( 'Installment' => array( 'Car or installment loan', 'Préstamo de auto o a plazos' ), 'Revolving' => array( 'Credit card', 'Tarjeta de crédito' ), 'Student' => array( 'Student loan', 'Préstamo estudiantil' ), 'Lease' => array( 'Lease', 'Arrendamiento' ), 'Other' => array( 'Other', 'Otro' ), ) ), ), 'creditor' => array( 'type' => 'text', 'label' => mapp_t( 'Company', 'Compañía' ) ), 'balance' => array( 'type' => 'currency', 'label' => mapp_t( 'Balance', 'Saldo' ), 'min' => 0 ), 'payment' => array( 'type' => 'currency', 'label' => mapp_t( 'Monthly payment', 'Pago mensual' ), 'min' => 0 ), 'pay_off' => array( 'type' => 'yesno', 'required' => false, 'options' => $yes_no, 'label' => mapp_t( 'Pay off at or before closing?', '¿Pagarla al cierre o antes?' ) ), ), ), 'reo' => array( 'type' => 'repeat', 'section' => 'reo', 'required' => false, 'label' => mapp_t( 'Other properties you own', 'Otras propiedades que posee' ), 'help' => mapp_t( 'Homes or land you own besides the one in this application. Skip this if none.', 'Casas o terrenos que posee además del de esta solicitud. Omítalo si no tiene.' ), 'min' => 0, 'max' => 10, 'item' => mapp_t( 'Property', 'Propiedad' ), 'fields' => array( 'address' => array( 'type' => 'text', 'label' => mapp_t( 'Address', 'Dirección' ) ), 'value' => array( 'type' => 'currency', 'label' => mapp_t( 'Value', 'Valor' ), 'min' => 0 ), 'status' => array( 'type' => 'choice', 'label' => mapp_t( 'Status', 'Estado' ), 'options' => mapp_opts( array( 'Retain' => array( 'Keeping it', 'La conservaré' ), 'PendingSale' => array( 'Sale pending', 'Venta pendiente' ), 'Sold' => array( 'Sold', 'Vendida' ), ) ), ), 'occupancy' => array( 'type' => 'choice', 'label' => mapp_t( 'How is it used?', '¿Cómo se usa?' ), 'options' => mapp_opts( array( 'PrimaryResidence' => array( 'Primary residence', 'Residencia principal' ), 'SecondHome' => array( 'Second home', 'Segunda vivienda' ), 'Investment' => array( 'Rental or investment', 'Renta o inversión' ), ) ), ), 'mortgage_balance' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Mortgage balance', 'Saldo de la hipoteca' ), 'min' => 0 ), 'mortgage_payment' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Mortgage payment per month', 'Pago mensual de la hipoteca' ), 'min' => 0 ), 'expenses' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Taxes, insurance and HOA per month', 'Impuestos, seguro y HOA al mes' ), 'min' => 0 ), 'rental_income' => array( 'type' => 'currency', 'required' => false, 'label' => mapp_t( 'Rental income per month', 'Ingreso de renta al mes' ), 'min' => 0 ), ), ), 'gifts' => array( 'type' => 'repeat', 'section' => 'assets', 'required' => false, 'show_if' => array( $is_purchase ), 'label' => mapp_t( 'Gifts or grants toward this purchase', 'Donaciones o subsidios para esta compra' ), 'help' => mapp_t( 'Money a relative, employer or program is giving you. Skip this if none.', 'Dinero que le da un familiar, empleador o programa. Omítalo si no hay.' ), 'min' => 0, 'max' => 4, 'item' => mapp_t( 'Gift', 'Donación' ), 'fields' => array( 'source' => array( 'type' => 'choice', 'label' => mapp_t( 'From', 'De' ), 'options' => mapp_opts( array( 'Relative' => array( 'Relative', 'Familiar' ), 'Employer' => array( 'Employer', 'Empleador' ), 'NonProfit' => array( 'Nonprofit or grant program', 'Organización sin fines de lucro o programa de subsidio' ), 'StateAgency' => array( 'State or local agency', 'Agencia estatal o local' ), 'Other' => array( 'Other', 'Otro' ), ) ), ), 'deposited' => array( 'type' => 'yesno', 'required' => false, 'options' => $yes_no, 'label' => mapp_t( 'Already deposited?', '¿Ya está depositado?' ) ), 'value' => array( 'type' => 'currency', 'label' => mapp_t( 'Amount', 'Monto' ), 'min' => 0 ), ), ), 'full_certify' => array( 'type' => 'consent', 'section' => 'review', 'label' => mapp_t( 'I have read and agree to the Uniform Residential Loan Application acknowledgments and agreements, I consent to do business electronically, and I authorize my loan officer to verify the information I provided, including by pulling my credit.', 'He leído y acepto los reconocimientos y acuerdos de la Solicitud Uniforme de Préstamo Residencial, doy mi consentimiento para hacer negocios electrónicamente y autorizo a mi oficial de préstamos a verificar la información proporcionada, incluso consultando mi crédito.' ), // The site's Application Disclaimer is shown with it and kept in the consent record. 'terms_option' => 'disclaimer_field_1', ), ); foreach ( $borrower_full as $key => $def ) { $def['stage'] = 'full'; $questions[ $key ] = $def; } foreach ( $shared_full as $key => $def ) { $def['stage'] = 'full'; $questions[ $key ] = $def; } // Co-borrower copies of the borrower sections, shown only with a co-borrower. $co_sections = array( 'personal', 'employment', 'military', 'declarations', 'demographics' ); foreach ( $borrower_full as $key => $def ) { if ( ! in_array( $def['section'], $co_sections, true ) ) { continue; } $co_def = $def; $co_def['stage'] = 'full'; $co_def['role'] = 'coborrower'; // Browser autofill holds the borrower's own details, never the co-borrower's. unset( $co_def['autocomplete'] ); $co_def['section'] = 'co_' . $def['section']; unset( $co_def['min_if'] ); $conditions = array( array( 'has_coborrower', '=', 'Yes' ) ); if ( ! empty( $def['show_if'] ) ) { foreach ( $def['show_if'] as $cond ) { // Only borrower-level answers have a co-borrower copy; shared ones (purpose) stay as is. if ( 'military' === $cond[0] || isset( $borrower_full[ $cond[0] ] ) ) { $cond[0] = 'co_' . $cond[0]; } $conditions[] = $cond; } } $co_def['show_if'] = $conditions; $questions[ 'co_' . $key ] = $co_def; } $questions['co_military'] = array( 'type' => 'yesno', 'stage' => 'full', 'role' => 'coborrower', 'section' => 'co_military', 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ), 'label' => mapp_t( 'Has the co-borrower served in the U.S. military?', '¿El cosolicitante ha servido en las fuerzas armadas de EE. UU.?' ), 'options' => $yes_no, ); /* * Steps. The short app shows one question per screen on phones; questions * that share a group appear together. Purpose-specific steps carry show_if. */ $steps = array( array( 'id' => 'purpose', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'purpose' ) ), array( 'id' => 'location', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'zip_code' ) ), array( 'id' => 'property_type', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'home_description' ) ), array( 'id' => 'property_use', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'property_use' ) ), array( 'id' => 'timeline', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'loan_purpose_purchase' ), 'show_if' => array( $is_purchase ) ), array( 'id' => 'first_home', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'first_time_buyer' ), 'show_if' => array( $is_purchase ) ), array( 'id' => 'purchase_numbers', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'purchase_price', 'down_payment' ), 'show_if' => array( $is_purchase ), 'title' => mapp_t( "Let's talk numbers", 'Hablemos de números' ) ), array( 'id' => 'refi_goal', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'refi_goal' ), 'show_if' => array( $is_refi ) ), array( 'id' => 'refi_numbers', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'home_value', 'mortgage_balance' ), 'show_if' => array( $is_refi ), 'title' => mapp_t( 'Your home and your loan', 'Su casa y su préstamo' ) ), array( 'id' => 'refi_rate', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'loan_interest_rate', 'current_loan_type' ), 'show_if' => array( $is_refi, array( 'mortgage_balance', '!=', '0' ) ), 'title' => mapp_t( 'About your current loan', 'Sobre su préstamo actual' ) ), array( 'id' => 'cash_out', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'additional_funds' ), 'show_if' => array( $is_refi, array( 'refi_goal', 'in', array( 'Cash out', 'Consolidate debt' ) ) ) ), array( 'id' => 'credit', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'credit_rating' ) ), array( 'id' => 'military', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'military' ) ), array( 'id' => 'income', 'kind' => 'questions', 'stage' => 'short', 'questions' => array( 'employment_status', 'monthly_income' ), 'title' => mapp_t( 'Your income', 'Sus ingresos' ) ), array( 'id' => 'numbers', 'kind' => 'reveal', 'stage' => 'short' ), array( 'id' => 'contact', 'kind' => 'contact', 'stage' => 'contact', 'questions' => array( 'first_name', 'last_name', 'email', 'phone_number', 'consent_tcpa' ) ), array( 'id' => 'current_address', 'kind' => 'questions', 'stage' => 'final', 'questions' => array( 'mailing_address' ), 'show_if' => array( array( 'mailing_same_as_property', '!=', 'Yes' ) ) ), array( 'id' => 'history', 'kind' => 'questions', 'stage' => 'final', 'questions' => array( 'purchase_year', 'second_mortgage', 'late_payments' ), 'show_if' => array( $is_refi ), 'title' => mapp_t( 'A few details about the home', 'Algunos detalles de la casa' ) ), array( 'id' => 'credit_events', 'kind' => 'questions', 'stage' => 'final', 'questions' => array( 'bankruptcy', 'foreclosure' ), 'title' => mapp_t( 'Credit history', 'Historial de crédito' ) ), array( 'id' => 'age', 'kind' => 'questions', 'stage' => 'final', 'questions' => array( 'age_62_plus', 'reverse_mortgage' ), 'show_if' => array( $is_refi, array( 'property_use', '=', 'Primary Residence' ) ), 'title' => mapp_t( 'One more question', 'Una pregunta más' ) ), array( 'id' => 'agent', 'kind' => 'questions', 'stage' => 'final', 'questions' => array( 'agent_contact' ), 'show_if' => array( $is_purchase ) ), array( 'id' => 'submit', 'kind' => 'submit', 'stage' => 'final', 'questions' => array( 'agree_access' ) ), array( 'id' => 'done', 'kind' => 'done', 'stage' => 'final' ), ); /* * Full 1003 sections, shown after the short app when the borrower keeps going. */ $sections = array( array( 'id' => 'personal', 'title' => mapp_t( 'About you', 'Sobre usted' ) ), array( 'id' => 'residence', 'title' => mapp_t( 'Where you live', 'Dónde vive' ) ), array( 'id' => 'coborrower', 'title' => mapp_t( 'Co-borrower', 'Cosolicitante' ) ), array( 'id' => 'co_personal', 'intro' => mapp_t( 'Answer these for your co-borrower: where a question says you, it means them.', 'Conteste esto sobre su cosolicitante: donde la pregunta dice usted, se refiere a esa persona.' ), 'title' => mapp_t( 'About your co-borrower', 'Sobre su cosolicitante' ), 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ) ), array( 'id' => 'employment', 'title' => mapp_t( 'Work and income', 'Trabajo e ingresos' ) ), array( 'id' => 'co_employment', 'intro' => mapp_t( 'Answer these for your co-borrower: where a question says you, it means them.', 'Conteste esto sobre su cosolicitante: donde la pregunta dice usted, se refiere a esa persona.' ), 'title' => mapp_t( 'Co-borrower work and income', 'Trabajo e ingresos del cosolicitante' ), 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ) ), array( 'id' => 'assets', 'title' => mapp_t( 'Assets', 'Activos' ) ), array( 'id' => 'liabilities', 'title' => mapp_t( 'Debts', 'Deudas' ) ), array( 'id' => 'reo', 'title' => mapp_t( 'Other properties', 'Otras propiedades' ) ), array( 'id' => 'military', 'title' => mapp_t( 'Military service', 'Servicio militar' ), 'show_if' => array( array( 'military', '=', 'Yes' ) ) ), array( 'id' => 'co_military', 'intro' => mapp_t( 'Answer these for your co-borrower: where a question says you, it means them.', 'Conteste esto sobre su cosolicitante: donde la pregunta dice usted, se refiere a esa persona.' ), 'title' => mapp_t( 'Co-borrower military service', 'Servicio militar del cosolicitante' ), 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ) ), array( 'id' => 'declarations', 'title' => mapp_t( 'Declarations', 'Declaraciones' ) ), array( 'id' => 'co_declarations', 'intro' => mapp_t( 'Answer these for your co-borrower: where a question says you, it means them.', 'Conteste esto sobre su cosolicitante: donde la pregunta dice usted, se refiere a esa persona.' ), 'title' => mapp_t( 'Co-borrower declarations', 'Declaraciones del cosolicitante' ), 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ) ), array( 'id' => 'demographics', 'title' => mapp_t( 'Demographic information', 'Información demográfica' ), 'intro' => mapp_t( 'The federal government asks lenders for this information to monitor compliance with fair lending laws. You are not required to provide it, and your answers will not affect your application.', 'El gobierno federal pide esta información a los prestamistas para vigilar el cumplimiento de las leyes de préstamos justos. No está obligado a proporcionarla y sus respuestas no afectarán su solicitud.' ), ), array( 'id' => 'co_demographics', 'intro' => mapp_t( 'Answer for your co-borrower. The federal government asks lenders for this information to monitor compliance with fair lending laws. It is not required, and the answers will not affect the application.', 'Conteste sobre su cosolicitante. El gobierno federal pide esta información a los prestamistas para vigilar el cumplimiento de las leyes de préstamos justos. No es obligatoria y las respuestas no afectarán la solicitud.' ), 'title' => mapp_t( 'Co-borrower demographic information', 'Información demográfica del cosolicitante' ), 'show_if' => array( array( 'has_coborrower', '=', 'Yes' ) ) ), array( 'id' => 'review', 'title' => mapp_t( 'Review and submit', 'Revisar y enviar' ) ), ); /* * Short labels for the LO side (emails, GHL notes, admin). The borrower sees * the question wording; the LO sees these. Anything not listed uses its label. */ $admin_labels = array( 'purpose' => 'Loan purpose', 'zip_code' => 'Property location', 'home_description' => 'Property type', 'property_use' => 'Occupancy', 'loan_purpose_purchase' => 'Purchase timeline', 'first_time_buyer' => 'First-time buyer', 'purchase_price' => 'Purchase price', 'down_payment' => 'Down payment', 'refi_goal' => 'Refinance goal', 'home_value' => 'Estimated home value', 'mortgage_balance' => 'Mortgage balance', 'loan_interest_rate' => 'Current rate', 'current_loan_type' => 'Current loan type', 'additional_funds' => 'Cash-out requested', 'credit_rating' => 'Credit (self-reported)', 'military' => 'Military service', 'employment_status' => 'Employment', 'monthly_income' => 'Monthly household income', 'phone_number' => 'Phone', 'consent_tcpa' => 'Call and text consent', 'mailing_address' => 'Current address', 'purchase_year' => 'Year purchased', 'second_mortgage' => 'Second mortgage or HELOC', 'late_payments' => 'Late payments (12 months)', 'bankruptcy' => 'Bankruptcy (7 years)', 'foreclosure' => 'Foreclosure (7 years)', 'age_62_plus' => '62 or older', 'reverse_mortgage' => 'Reverse mortgage interest', 'agent_contact' => 'Real estate agent', 'agree_access' => 'Certification and terms', 'full_certify' => 'URLA certification and e-consent', 'current_housing' => 'Current housing', 'decl_occupy' => 'Will occupy as primary residence', 'decl_prior_ownership' => 'Owned property in last 3 years', 'decl_family_seller' => 'Relationship with seller', 'decl_borrowed_funds' => 'Undisclosed borrowed funds', 'decl_other_mortgage' => 'Other mortgage or new credit applied for', 'decl_priority_lien' => 'Priority lien (PACE)', 'decl_cosigner' => 'Co-signer on undisclosed debt', 'decl_judgments' => 'Outstanding judgments', 'decl_federal_debt' => 'Delinquent federal debt', 'decl_lawsuit' => 'Party to a lawsuit', 'decl_deed_in_lieu' => 'Deed in lieu (7 years)', 'decl_short_sale' => 'Short sale (7 years)', 'decl_foreclosure' => 'Foreclosure (7 years)', 'decl_bankruptcy' => 'Bankruptcy (7 years)', 'has_coborrower' => 'Co-borrower', ); foreach ( $admin_labels as $key => $text ) { if ( isset( $questions[ $key ] ) ) { $questions[ $key ]['admin_label'] = $text; } if ( isset( $questions[ 'co_' . $key ] ) ) { $questions[ 'co_' . $key ]['admin_label'] = 'Co-borrower: ' . lcfirst( $text ); } } return array( 'version' => 1, 'questions' => $questions, 'steps' => $steps, 'sections' => $sections, );