Description:
This customization provides data entry for multiple parents, guardians, and other contacts that are related to the current student.
Features:
-Dynamically add as many contacts per student as needed. Number of contacts allowed is only limited by available custom fields.
-Uses AJAX methods so that contact information can be viewed, added, and modified all on one page.
-Set emergency contact priority to help sort and flag what contacts should be called in case of emergency.
-Includes all data entry from Parents/Guardian page as well as some data entry from the Emergency/Medical page.
Extra Note:
This customization is intended to replace the scattered data entry for emergency contacts and parent/guardian information. Because of this I recommend removing the link to the Parent/Guardian page on /admin/students/more2.html. Additionally, the /admin/students/medical.html page can be customized to remove the data entry for emergency contact information. Keep in mind that this is not required for this customization to work and your schools may actually need those other data entry locations for reports that they have made.
PowerSchool v6 Note:
This customization has been tested and works fine with PS6. Since PS6 has added more links to the /admin/students/more2.html file, I recommend copying the new file in PS6 and manually adding the link to this customization as described in the documentation I have provided.
v2.0
-Added more one-way sync to mother/father fields that are found on the Demographics screen.
-Added function that cleans email list entry before saving to database.
-Added file that can be uploaded as a report in the sqlReports customization.
-Added file that can be uploaded into the PowerSchool reporting engine. This report will create a pdf of 5160 formatted mailing labels for contacts that are flagged with 'receives mailings'.
v1.1
-Fixed copy email function to separate multiple emails with a comma instead of a semicolon.
-Added ability to copy student's mailing or home address into a contact's address.
-Added a new page to PowerTeacher student pages named 'Contacts'. This new page gives teachers a read-only view of all contacts for a student.
Comments
Add to automated email
Got everything in and working but for some reason the +add to automated emails doesn't do anything. Any ideas as to why? Do we need to have something else to make that button work???
thanks
Looks like I broke the
Looks like I broke the copyEmail function on the most recent version(1.1). If the guardian email field is currently empty then the copy function will not work. A quick fix would be to find the following in copyEmail() function in studentcontacts.html:
var data;
And change it to...
var data = email.trim();
Brent Johnson
Database Specialist, Programmer
Traverse Bay Area ISD
Question for you
We want to know if there is a way to pull out the contact information based on importance rather than how the order they were entered.
Thank you, Claudia
Allow teachers to see this data?
Our preK-6 teachers would like to know when a second mailing needs to go to a second contact person. Is there a way to make this information available to the teachers?
Allow teachers to see this data?
Our preK-6 teachers would like to know when a second mailing needs to go to a second contact person. Is there a way to make this information available to the teachers?
Help Please For The Newbie
Carrie Newnam
Student Accounting Supervisor
Mid-Del Schools
(405) 732-4206
cnewnam@mid-del.k12.ok.us
I am new at PowerSchool so forgive me if this question seems elementary....I followed the instructions and placed all of the files in the appropriate places. I log into PS and can see the link for Student Contacts...when I click on the link, I can see the new page but there is no button to click to add a contact....I'm not sure what I've done wrong but sure would appreciate any guidance. Thanks so much!
No button to add contact
I have the same problem. Anyone have a sollution? The new student contacts page loaded, but I can't add contacts. I've tried in IE and Firefox. Am I missing something simple?
Thanks!
Marc
Solution found for me...
Carrie Newnam
Student Accounting Supervisor
Mid-Del Schools
(405) 732-4206
cnewnam@mid-del.k12.ok.us
I did find a solution for our district in that when the files were copied to the image server, they didn't get put in the appropriate place. The image server doesn't have a PowerSchool folder...the folder was actually the Apache folder....had to drill down to where the images and scripts folders were actually stored there. Hope that helps you!
Thank you!
That was the problem! I needed to put the javascript in c:\Program Files\Apache Software Foundation\Apache2.2\htdocs\psimages\scripts\ on my server.
Thank you!
Marc
Thanks and a ?
Brent -
Newbie PS user here. Awesome form, great documentation, was able to load it and showed it to our registrars, they liked it alot. Thank you!!!!
I noticed that after we added a 6th contact, that the address info on the main display for that contact didn't show, and the phone listing info was moved to the left by one box just for the 6th contact. (on both Firefox and IE.) Wondering if we hit some sort of memory limit for displaying info? Any ideas? (When modifying 6th contact, we can edit the address, so the info is there, it just didn't display like the rest of the contacts.)
Am looking to add a few more fields (checkboxes) similar to kfandale's post but want to figure out what is going on with the 6th contact.
Rob Stalling
BSU IT tech
Re: Thanks and a ?
You're welcome!
I don't think that it would be hitting a memory limit for display. I have tested the customization on Firefox and IE with 10+ contacts before without display problems.
There have been some times when I have first implemented the customization on a new server where some fields would not display properly even though the data was entered. One thing you can try is running the "Rebuild custom fields mirrored data" special operation (https://powersource.pearsonschoolsystems.com/d/powerschool_6623) and see if that fixes things.
Brent Johnson
Database Specialist, Programmer
Traverse Bay Area ISD
Thanks for the tip - It's
Thanks for the tip - It's working now, and although I ran the "Rebuild", it actually started working only after we bulk loaded our contact data. So I'm thinking it was something I did when entering limited test data. Thanks again for this, I added a few more custom fields and our user base is very happy! Phew!
Thankyou*(infinity)!
Rob Stalling
BSU IT tech
Terrific Contact Form!
The multiple contact form you created is awesome!
We have a group of representatives from our districts who are involved with figuring out what a common set of enrollment forms for our districts should look like. They loved your student contact screen, but wanted to add a checkbox for each contact to indicate whether that person lives with the student or not.
I made a quick addition to the contactinfo and contactedit pages, modeling the code after the checkbox for receiving mail that you already had – and 5 minutes later the change was in place.
Thanks!
Thank You
Great job of collecting the data. I like the arbitrary number of contacts.
I am a little concerned about reporting. Do I create a different report for every possible # in "contact{#}_last" and then select student on "contact{#}_street# ;contact{#}_recvmail=1"
Is there a simpler way to mail to all the contacts that want mailings?
re: Thank You
I'm not sure what kind of reporting you're looking to do but here is a query that will pull all contacts and their information that have recvmail=1:
SELECT * FROM
(SELECT num,studentid,
MAX(CASE WHEN field_name LIKE '%_ecpriority' THEN string_value ELSE NULL END) AS priority,
MAX(CASE WHEN field_name LIKE '%_first' THEN string_value ELSE NULL END) AS firstname,
MAX(CASE WHEN field_name LIKE '%_last' THEN string_value ELSE NULL END) AS lastname,
MAX(CASE WHEN field_name LIKE '%_rel' THEN string_value ELSE NULL END) AS relationship,
MAX(CASE WHEN field_name LIKE '%_street' THEN string_value ELSE NULL END) AS street,
MAX(CASE WHEN field_name LIKE '%_city' THEN string_value ELSE NULL END) AS city,
MAX(CASE WHEN field_name LIKE '%_state' THEN string_value ELSE NULL END) AS state,
MAX(CASE WHEN field_name LIKE '%_zip' THEN string_value ELSE NULL END) AS zip,
MAX(CASE WHEN field_name LIKE '%_recvmail' THEN string_value ELSE NULL END) AS recvmail,
MAX(CASE WHEN field_name LIKE '%_email' THEN string_value ELSE NULL END) AS email,
MAX(CASE WHEN field_name LIKE '%_homephone' THEN string_value ELSE NULL END) AS homephone,
MAX(CASE WHEN field_name LIKE '%_cellphone' THEN string_value ELSE NULL END) AS cellphone,
MAX(CASE WHEN field_name LIKE '%_workphone' THEN string_value ELSE NULL END) AS workphone,
MAX(CASE WHEN field_name LIKE '%_employer' THEN string_value ELSE NULL END) AS employer
FROM
(SELECT regexp_replace(field_name, '^contact(\d+)_.+$', '\1') AS num, field_name, string_value, studentid FROM pvsis_custom_students
WHERE regexp_like(field_name, '^contact\d+_.+$', 'i')
ORDER BY num
)
GROUP BY num, studentid
)
WHERE recvmail=1
ORDER BY studentid,priority, lastname
Hope this helps.
Brent Johnson
Database Specialist, Programmer
Traverse Bay Area ISD
Thanks
I'd like to thank you for compiling all of this information into some nice custom pages. I had set something up similar for our schools, but nothing that was as easily laid out as this addon. Thanks again