It sounds like you are encountering a validation error when submitting a form in SharePoint, despite your validation formula working correctly in the New Item form. The error message you are receiving, "Something went wrong. Try refreshing or contact the owner of the form," can be indicative of several issues, including:
- Formula Syntax: Ensure that your validation formula is correctly formatted and that the field names
[EndDate]and[StartDate]are spelled correctly and match the exact names used in your SharePoint list. - Field Types: Check that both
[EndDate]and[StartDate]are of the correct data type (Date and Time). If they are not, the validation may fail. - Form Settings: Sometimes, the form settings may not properly reflect the validation rules set in the list. Ensure that the form is correctly configured to enforce the list validation rules.
- Permissions: Verify that you have the necessary permissions to submit the form. Sometimes, permission issues can lead to generic error messages.
- Browser Issues: Try clearing your browser cache or using a different browser to see if the issue persists.
- SharePoint Limitations: If you're using a custom form or a third-party tool, there may be limitations or bugs associated with that tool. Consider testing the form without any customizations to isolate the issue.
If the problem continues, you might want to check the SharePoint logs for more detailed error messages or consult with your SharePoint administrator for further assistance.