+ Reply to Thread
Results 1 to 10 of 10

Forms - Leave application. Issue: Forms dont allow leave application more than 2days

  1. #1
    Registered User
    Join Date
    12-07-2021
    Location
    Brunei
    MS-Off Ver
    2016, google sheet
    Posts
    11

    Question Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    I have a leave application form that I have used for our company's leaves application online. When we apply for leave, we will receive an email notification of said leave being applied and an email notification to the approver.

    The problem: When we apply a leave more than 1 day i.e. 2days, the form does not register the application nor it will send an email notification of said leave to us, and to the approver.

    What we tried:
    1. The system has worked for a long time, and the last application with success of more than 2 days is back in December. There wasn't any issue till January.
    2. We have tried with different browser, different PC, different email and caches, and anything more than 1day, the problem arises.
    3. Anything like 1 day or less, there is no issue. A notification will be sent to the applicant and the approver where the leave can be approved.
    4. We have not modified or changed anything with the leave application form between the time period.
    5. The form is attached from a sheet, where any approved leave will go to the sheet to be manually adjusted and reviewed by the office administrator.

    If anyone has an idea what went wrong, please let me know. (I'm thinking it's a broken script connecting forms to sheet? but I'm not sure)

    Forms:Leave application
    docs.google.com/forms/d/1S739TgPdFvLO4gSMzazdrR56scHLSrdorsWRV2SD4k8/edit[/url]

    If required: Sheets: Paid Leave
    docs.google.com/spreadsheets/d/1-BVujWAcqPCfv6urOJgKXmw94jvHw5KmU_h9NFXiX3k/edit?usp=sharing[/url]

    Once the forms are filled and approved, the leave will be automatically be registered to the sheets.
    Note that both are not connected as I can only copy each sheet one by one.

    Thank you for looking into it.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    there are no scripts attached to the form, and there are no email scripts attached to the spreadsheet, so its not possible to find if there is any scripting issues.

    that being said, i did have a look at the format used for some of the date columns, and when i checked if they are numbers i discovered that a lot of the data is actually text, and that is not a good thing to do.

    you can see them highlighted orange in the screenshot.

    to troubleshoot further we really need to have a limited set of example data (1800 rows is too much, 20 rows is enough) along with any required scripts that the data would be used for creating the email.

    Screen Shot 2022-01-29 at 12.35.26 am.png

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,615

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    Please respond to the help you have been given here. Don't open new threads on the same issue. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    12-07-2021
    Location
    Brunei
    MS-Off Ver
    2016, google sheet
    Posts
    11

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    This is the new sheet in question:
    docs.google.com/spreadsheets/d/1EkZHmxZZQvLEyr5gXhKWDonfPlDLAPLngSEadYg47x4/edit#gid=299715453

    I believe that the problem maybe stemming from how the data is transferred from the forms to the sheets. However, date wise it looks like everything is in order, so I couldn't figure out what is triggering the #value! problem.
    In the sheets, the green arrow is referring to those leaves that are more than 2days and wasn't able to show proper value (#value!). The ones with pass are days with less than or equal to 1 day leave.
    Attached Images Attached Images

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    given that:

    * there are no apps scripts attached to the google form in post #1
    * there are no apps scripts attached to this new google sheet from post #4
    * there is no formula for creating the "url" in columns S and T
    * the name is used in the "url" but there are no names on the form responses sheet, so we have no idea how/where the name is obtained from
    * there is no indication how you get the results in columns A, B, W, X, AE, AF, AJ

    how do you expect us to help you?
    Last edited by janmorris; 02-05-2022 at 12:30 AM.

  6. #6
    Registered User
    Join Date
    12-07-2021
    Location
    Brunei
    MS-Off Ver
    2016, google sheet
    Posts
    11

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    There are no appscripts attached to the original google form in post #1 and new google sheet from post #4.

    3. I accidentally deleted the master formula while redacting. I have pasted the row back with the formulas in place.

    4. the name is used in the "url" but there are no names on the form responses sheet, so we have no idea how/where the name is obtained from
    Not sure what you are refering to, but I have added a name on row 135. On the original forms, there is actually a list of of names to choose from which is pulled from the employee list sheet (google sheet post 4), It is disabled and redacted in the copy version.

    Thank you for your patience.

  7. #7
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    the problem is that only the "Form Responses 1" has data that is accessible to anyone else.

    and you still have not addressed the issue of where the columns A, B, W, X, AE, AF, AJ get their data from.
    that is to say, you must at the very least provide sample data AND put the formulas back in their place.

    no one will ever be able to tell you why a cell has a VALUE error when you cannot provide the formula and sample data that show the issue in action.

    im sorry, i will not continue further until you have addressed these issues.

  8. #8
    Registered User
    Join Date
    12-07-2021
    Location
    Brunei
    MS-Off Ver
    2016, google sheet
    Posts
    11

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    Thank you for your reply and help. I have connected everything as per original. (including the add on copydown and form mule)

    The below is the form in question. If you fill the form below, it will exactly replicate the issue that occurred above. Regarding the name, it is filled in manually on the (edit)forms so you can select it when filling the live form.

    docs.google.com/forms/d/e/1FAIpQLSe4l7ReGe5D1XLc2xT0s0jSYAfn0mOi8T1vt4Elgh1VSWY27Q/viewform

    If you fill in 1day, then it will send an automated email to you, but anything more than 1day, it will not send anything and it will give the #value! on the sheets. The data will appear under form response 2.
    //docs.google.com/spreadsheets/d/1EkZHmxZZQvLEyr5gXhKWDonfPlDLAPLngSEadYg47x4/edit#gid=1605730071


    I hope the above is sufficient for you to check the issue.

    Thank you!

  9. #9
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    thank you for providing the formulas, this has allowed to find the root of the issue.

    do you remember where i first said that the dates need to be checked?
    well, it seems that advice was ignored and nothing was done about it. heres why....

    column AJ refers to columns A and B:
    Please Login or Register  to view this content.
    so if there is a #VALUE error will carry through from them.

    column A refers to column W
    Please Login or Register  to view this content.
    column B refers to column X:
    Please Login or Register  to view this content.
    and column W also refers to column X:
    Please Login or Register  to view this content.
    so this means the formula in column X is the "top level" of the #VALUE error.

    as you mentioned the formulas have not been touched, we can start by looking at the data used by them.

    i saw on the "Auto-update: Holidays" that the last two entries are not dates, but text that does not follow the same formatting as the previous data

    Screen Shot 2022-02-06 at 2.17.04 am.png

    so, i have overwritten the data on the "Auto-update: Holidays" sheet with the values of dates, then after i corrected the last two entries to make them dates, i tested and successfully booked myself 5 days of Personal Leave. (please ensure my salary is deposited directly to my bank )

    so the problem has been caused by poor date formatting.

    please fix those last two dates from the source file: "1PprqrB0YBT5bjyQ9Qd3zb27jtOmnpNPUtAMZM4g83ME" on the "Holidays!A:B" tab/sheet

    then delete all the data in the "Auto-update: Holidays" sheet, and put this formula back into cell A1:
    Please Login or Register  to view this content.
    Last edited by janmorris; 02-05-2022 at 10:04 PM.

  10. #10
    Registered User
    Join Date
    12-07-2021
    Location
    Brunei
    MS-Off Ver
    2016, google sheet
    Posts
    11

    Re: Forms - Leave application. Issue: Forms dont allow leave application more than 2days

    It is resolved. Thank you so much Janmorris

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Close workbook, but leave the new application instance opened
    By Alexander_Golinsky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2013, 04:26 AM
  2. I just want to leave this application -_-
    By grogoin in forum Excel General
    Replies: 7
    Last Post: 05-03-2012, 10:08 AM
  3. E Mail Leave application Form
    By niladri20005 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-30-2011, 07:19 AM
  4. application called by different User Forms
    By MrReds in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-25-2010, 05:46 PM
  5. [SOLVED] Accessing WorksheetFunction.XX from regular C# Forms application
    By Jens Thiel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  6. Accessing WorksheetFunction.XX from regular C# Forms application
    By Jes Ramsing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1