Home›Forums›Feature Requests›Volunteer Sign-Up Sheets – Feature Requests›Multiple details fields for a task›Reply To: Multiple details fields for a task
Update for version 2.2.0
The intention of this edit is to provide the volunteer with a larger textbox for the details
and also prefill with a numeral 1. and numeral 2. on separate lines. This change permits
the prompt (in the second edit below) to ask the volunteer to enter one detail on line 1. and
another detail on line 2.
Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_public.php
in the function display_signup_form
near bottom, search for $task->details_text
on the next field
change:
ver 2.2.0
<input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? stripslashes(esc_attr($_POST[‘signup_item’])) : ”).'” ‘.esc_attr($details_required).’ />
to (the new line after 1. is important):
ver 2.2.0
<textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($_POST[‘signup_item’])) ? stripslashes(esc_attr($_POST[‘signup_item’])) : ‘1.
2.’).esc_attr($details_required).'</textarea>