{"id":27,"date":"2024-07-30T15:13:01","date_gmt":"2024-07-30T15:13:01","guid":{"rendered":"https:\/\/oneseventyfive.com\/fern\/?page_id=27"},"modified":"2024-07-30T20:36:49","modified_gmt":"2024-07-30T20:36:49","slug":"submit-a-listing","status":"publish","type":"page","link":"https:\/\/oneseventyfive.com\/fern\/submit-a-listing\/","title":{"rendered":"Add a doctor"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Is your Ontario family doctor currently accepting patients?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please add them to the list, providing as much information as possible. Please note that all listings are checked for verification prior to being published on Fern. Your listing may not appear for up to 24 hours. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for being part of the Fern community! Your contribution helps ensure that everyone has access to the care they deserve.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n    <form id=\"fern-submission-form\" method=\"post\">\n        <h3>Information about your family doctor<\/h3>\n        <p>\n            <label for=\"fern_first_name\">Doctor's first Name:<\/label>\n            <input type=\"text\" id=\"fern_first_name\" name=\"fern_first_name\" required>\n        <\/p>\n        <p>\n            <label for=\"fern_last_name\">Doctor's last Name:<\/label>\n            <input type=\"text\" id=\"fern_last_name\" name=\"fern_last_name\" required>\n        <\/p>\n        <p>\n            <label for=\"fern_address\">Clinic\/practice address:<\/label>\n            <input type=\"text\" id=\"fern_address\" name=\"fern_address\" required>\n        <\/p>\n        <p>\n            <label for=\"fern_city\">City:<\/label>\n            <select id=\"fern_city\" name=\"fern_city\" required>\n                <option value=\"\">Select a City<\/option>\n                <option value=\"Toronto\">Toronto<\/option>\n                <option value=\"Ottawa\">Ottawa<\/option>\n                <option value=\"Mississauga\">Mississauga<\/option>\n                <option value=\"Brampton\">Brampton<\/option>\n                <option value=\"Hamilton\">Hamilton<\/option>\n                <option value=\"London\">London<\/option>\n                <option value=\"Markham\">Markham<\/option>\n                <option value=\"Vaughan\">Vaughan<\/option>\n                <option value=\"Kitchener\">Kitchener<\/option>\n                <option value=\"Windsor\">Windsor<\/option>\n                <option value=\"Sudbury\">Sudbury<\/option>\n                <option value=\"Oshawa\">Oshawa<\/option>\n                <option value=\"Barrie\">Barrie<\/option>\n                <option value=\"St. Catharines\">St. Catharines<\/option>\n                <option value=\"Cambridge\">Cambridge<\/option>\n                <option value=\"Guelph\">Guelph<\/option>\n                <option value=\"Kingston\">Kingston<\/option>\n                <option value=\"Niagara Falls\">Niagara Falls<\/option>\n                <option value=\"Thunder Bay\">Thunder Bay<\/option>\n                <option value=\"Peterborough\">Peterborough<\/option>\n                <option value=\"Sarnia\">Sarnia<\/option>\n                <option value=\"Richmond Hill\">Richmond Hill<\/option>\n                <option value=\"Ajax\">Ajax<\/option>\n                <option value=\"Pickering\">Pickering<\/option>\n                <option value=\"Burlington\">Burlington<\/option>\n                <option value=\"Newmarket\">Newmarket<\/option>\n            <\/select>\n        <\/p>\n        <p>\n            <label for=\"fern_accepting_new_patients\">Check this box if this doctor is accepting new patients right now:<\/label>\n            <input type=\"checkbox\" id=\"fern_accepting_new_patients\" name=\"fern_accepting_new_patients\">\n        <\/p>\n        <p>\n            <label for=\"fern_contact_info\">How can new patients register? <\/label>\n            <input type=\"text\" id=\"fern_contact_info\" name=\"fern_contact_info\" required>\n        <\/p>\n        <p>\n            <label for=\"fern_postal_code\">Postal Code (First 3 Digits):<\/label>\n            <input type=\"text\" id=\"fern_postal_code\" name=\"fern_postal_code\" maxlength=\"3\" required>\n        <\/p>\n        <p>\n            <input type=\"submit\" name=\"fern_submit\" value=\"Submit\">\n        <\/p>\n    <\/form>\n\n    <script type=\"text\/javascript\">\n        jQuery(document).ready(function($) {\n            $('#fern-submission-form').on('submit', function(event) {\n                event.preventDefault(); \/\/ Prevent the default form submission\n                \n                var formData = $(this).serialize(); \/\/ Serialize form data\n\n                $.ajax({\n                    type: 'POST',\n                    url: fern_ajax_object.ajax_url,\n                    data: {\n                        action: 'fern_submit', \/\/ Specify the action for the AJAX request\n                        form_data: formData \/\/ Include the serialized form data\n                    },\n                    success: function(response) {\n                        \/\/ Redirect to a new page\n                        window.location.href = response.redirect_url;\n                    },\n                    error: function(jqXHR, textStatus, errorThrown) {\n                        console.error('AJAX error:', textStatus, errorThrown); \/\/ Log AJAX error\n                        alert('Error occurred. Please try again.');\n                    }\n                });\n            });\n        });\n    <\/script>\n\n    \n\n\n\n<p class=\"wp-block-paragraph\"><strong>A Note on Verification<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We strive to keep our information accurate, but we understand that verification can be tricky. Listings are submitted by community members, and while we do our best to confirm details, we encourage everyone to exercise caution. If you notice any incorrect information, please let us know! We\u2019re committed to maintaining a trustworthy resource, and any inaccurate listings can be taken down swiftly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you for being part of the Fern community! Your contribution helps ensure that everyone has access to the care they deserve.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is your Ontario family doctor currently accepting patients? Please add them to the list, providing as much information as possible. Please note that all listings are checked for verification prior to being published on Fern. Your listing may not appear for up to 24 hours. Thank you for being part of the Fern community! Your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-27","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/pages\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":6,"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/pages\/27\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/pages\/27\/revisions\/192"}],"wp:attachment":[{"href":"https:\/\/oneseventyfive.com\/fern\/wp-json\/wp\/v2\/media?parent=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}