• Lv_InSaNe_vL@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 day ago

    We have an app that drivers use to file paperwork and stuff like that. We are going to start requiring them to do a vehicle inspection before each load (not CDL, so it’s not required), and so I built a little form for them to use.

    If there is no issue, it just saves their report to a database so we can keep record. But if there is an issue it’s supposed to generate a report and send it off to the maintenance department.

    While I was working on the formatting for the email, it just stopped working! I was trying to troubleshoot my code thinking I broke the SMTP send part, reading my HTML formatted email thinking I missed some syntax, working with the SMTP relay provider we are using. Nothing. Everything looked perfect. There were no errors. Reports were properly saving to the database. Just no emails.

    I was forgetting to click the checkbox to mark that I had an issue 🤦‍♂️

    Anyways, now you can’t actually list issues or until you check that box haha

    • TJA!@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      24 hours ago

      Why do you need the checkbox then? Can’t you make soit that when they list issues, the mail will be sent?

      • Lv_InSaNe_vL@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        23 hours ago

        Because they fill out the report regardless if there is an issue or not. Also, it was a requirement I was given.

        I think it was to give the divers a more simplified form to fill out. Drivers tend to skew a little left on the bell curve so giving them a ton of stuff all at once means they just won’t do it at all

        Edit: Here’s a longer explanation of what the form looks like:

        • Name: [text box]
        • Truck Number: [text box]
        • Are there issues [Boolean toggle]
        • Comments [text box]
        • Signature

        Then if they toggle the “issues” checkbox, it expands to

        • What issues: [multi select list]
        • Description: [text box]
        • Pictures: [photo upload]