Home›Forums›Feature Requests›Volunteer Sign-Up Sheets – Feature Requests›Multiple details fields for a task
- This topic has 6 replies, 3 voices, and was last updated 7 years ago by Carl L.
-
AuthorPosts
-
-
November 21, 2016 at 7:45 PM #13272Kelly CobeanParticipant
The only information gathered when someone signs up for a task/item is First/Last name, email and phone number. If you check the details box for a given task, it only allows you to gather 1 additional piece of information. I would like to be able to gather more information than this. Can this be done?
-
November 21, 2016 at 8:09 PM #13279Stephen SherrardKeymaster
Can not currently be done without a lot more additional programming as well as adding extra database fields to the custom tables to store more values.
If it’s a feature you really need, you could always hire me, or any other decent programmer, to develop that for you. My plugin has lots of built-in hooks to allow other plugins to add additional functions (such as the several cheap extensions I have for it already).
Otherwise, I don’t have plans at this time to add any major new features to this plugin. Being able to add custom fields for collection of “more information” to the sheets and sign-up forms is a major amount of extra coding work for both the admin side and the public side, especially if it’s going to be generic enough to be used by many users of this plugin. But, if you have a very specific need for a very specific extra field that would be used for all sign-ups, and doesn’t need to be super generic and flexible, and depending on how and where you want to see that info, it could be a relatively small custom add-on project, or it could still be rather time consuming.
You can always contact me privately to discuss custom programming projects. I also, on occasion do “subsidized” development (reduced rate) of new features or premium extensions (such as the Calendar View extension), if it’s something that I think other people might be interested in purchasing.
-
January 22, 2017 at 7:30 PM #14117Carl LParticipant
One option is to ask the volunteers to furnish all the desired information in the one textbox, but that there is no submission validation.
I also would be interested to pay for an add-on that would permit more custom fields, but my organization can’t solely support the level of programming described by Mr. Sherrard. In our case, our current need is for a form with a required ‘Y/N’ radio button, but it would be OK to have another text field. We are just asking in the submission for the user to provide both pieces of information in the one box.
-
January 28, 2017 at 7:31 PM #14228Carl LParticipant
I made the following code modifications to ask for multiple details in the existing details field. Any site manager should take care making code modifications and know what you are doing. Modifying a live plugin is NOT recommended. I make these suggestions after testing on my site, but they may not work on your site. Backup your code if you make modifications.
The intention of this edit is to provide the sign-up volunteer with a larger textbox for entering the details and also pre-fill the box 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 line
change:<input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ”).'” />
to (the new line after 1. is important):
<textarea id=”signup_item” name=”signup_item”>’.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ‘1.
2.’).'</textarea>The intention of the next edit is to provide a larger box for the form manager to compose the prompt for the box where details are to be entered during signup. By default, this field is pre-filled with “Item you are bringing” but during creation of the sign-up form, the text can be edited to ask the volunteer to enter something on line 1. and something else on line 2.
Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php
in the function display_tasks_form
search for: Details label
(about 80% through file)On the next line, replace:
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;with:
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;Finally, it would be good if the database field of the volunteer detail response was larger. Currently it is 100 characters and the form returns an error if the volunteer tries to enter more than 100 characters. The limit for the size of the prompt is 200 characters.
-
March 10, 2017 at 5:23 PM #14985Carl LParticipant
update for ver 2.0 – 2.0.2. These have been verified in my installation.
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 1.20 <input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ”).'” ‘.esc_attr($details_required).’ />
to (the new line after 1. is important for my use):
ver 1.20 <textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($_POST[‘signup_item’])) ? esc_attr($_POST[‘signup_item’]) : ‘1.
2.’).'</textarea>The intention of this edit is to provide a larger box for the form manager to compose the prompt for the box where details are to be entered during signup.
Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php in the function display_tasks_form. Search for: Details label (about 80% through file)
On the next line, replace:
ver 1.20
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;with:
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’; -
October 1, 2017 at 2:06 PM #17996Carl LParticipant
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> -
December 19, 2017 at 7:19 PM #19280Carl LParticipant
Update for ver 2.3.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 If details are needed
lokk in the conditional
if ($task->need_details == “YES”) {
on the input field
change:ver 2.3.0
<input type=”text” id=”signup_item” name=”signup_item” value=”‘.((isset($posted[‘signup_item’])) ? stripslashes(esc_attr($posted[‘signup_item’])) : ”).'” ‘.esc_attr($details_required).’ />to (the new line after 1. is important):
ver 2.3.0 <textarea id=”signup_item” name=”signup_item” rows=”2″ cols=”50″ ‘.esc_attr($details_required).’>’.((isset($posted[‘signup_item’])) ? stripslashes(esc_attr($posted[‘signup_item’])) : ‘1.
2.’).esc_attr($details_required).'</textarea>The intention of this edit is to provide a larger box for the form manager to compose the
prompt for the box where details are to be entered during signup.
Modify form pta-volunteer-sign-up-sheets/classes/class-pta_sus_admin.php
in the function display_tasks_form
search for: Details text:
(about 80% through file)
On the next line, replace:
ver 2.1.0 – 2.3.0
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <input type=”text” class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” value=”‘.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'” size=”25″></span>’;with:
echo ‘<span class=”pta_toggle”><br />’.__(‘Details text:’,’pta_volunteer_sus’).’ <textarea class=”details_text” name=”task_details_text[‘.$i.’]” id=”task_details_text[‘.$i.’]” rows=”2″ cols=”50″>’.((isset($f[‘task_details_text’][$i]) ? esc_attr($f[‘task_details_text’][$i]) : __(“Item you are bringing”, “pta_volunteer_sus” ) )).'</textarea></span>’;
-
-
AuthorPosts
- You must be logged in to reply to this topic.