fifedog / hartOfFolsom

HART of Folsom, is a non-profit that helps the homeless. This is the source repo for their org. Primarily for the winter shelter program.
http://www.hartoffolsom.org
0 stars 0 forks source link

Outreach Error when saving new client outreach #32

Open fifedog opened 4 years ago

fifedog commented 4 years ago

Issue: When creating an outreach for a new client and you click next, the system states an error with flow, and to contact admin.

Flow error from email: INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST: How long have you stayed there?: bad value for restricted picklist field: Only one night.

fifedog commented 4 years ago

Here is the Error message:

Error.pdf

rsharley commented 4 years ago

The question "How long have you stayed there?" got cross pollinated with the question "How long can you stay there?" on the entry form, and when it tried to write an Outreach record it tried to write the Picklist value from "How long can you stay there?" to the "How long have you stayed there?" which has different Picklist values. Thus the error.

Also, I forgot about the record types under the Contact record so the Picklist values for some of the Contact/Client record did not include "-- Need to Answer --" or "Declined to Answer" included in their Picklist values. Those are now set for the Client record type in the Contact record.