{"id":1044,"date":"2024-02-16T13:53:29","date_gmt":"2024-02-16T12:53:29","guid":{"rendered":"https:\/\/www.help.headlight.tech\/?post_type=ht_kb&#038;p=1044"},"modified":"2024-02-16T13:53:30","modified_gmt":"2024-02-16T12:53:30","slug":"linking-documents-to-vehicles-or-employees-in-headlight-via-forms","status":"publish","type":"ht_kb","link":"https:\/\/www.help.headlight.tech\/?ht_kb=linking-documents-to-vehicles-or-employees-in-headlight-via-forms","title":{"rendered":"Linking Documents to Vehicles or Employees in Headlight via Forms"},"content":{"rendered":"\n<p>When uploading documents to Headlight, the form&#8217;s configuration plays a crucial role in associating the uploaded document with the correct vehicle or employee automatically.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Configuration Details<\/h4>\n\n\n\n<p><strong>Pre-Set References<\/strong>: In the configuration settings of the form, references are pre-set to link uploaded documents directly to a specific vehicle or employee.<\/p>\n\n\n\n<ul>\n<li>For vehicles, you can include a parameter like <code>{{car.car_id}}<\/code> in the configuration which automatically links the document to the vehicle&#8217;s unique identifier within Headlight.<\/li>\n\n\n\n<li>For employees, a similar setup is used, where an employee reference parameter can be configured to establish the connection upon document upload.<\/li>\n<\/ul>\n\n\n\n<p>By configuring the form in this manner, any document uploaded through the form will have a predetermined connection to either a vehicle or an employee, as specified by the parameters set during the form&#8217;s setup. This ensures that documents are accurately and efficiently linked to the correct records without requiring manual entry or association post-upload.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"670\" src=\"https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-1024x670.png\" alt=\"\" class=\"wp-image-1045\" srcset=\"https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-1024x670.png 1024w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-300x196.png 300w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-768x502.png 768w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-50x33.png 50w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-1536x1004.png 1536w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-2048x1339.png 2048w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-60x39.png 60w, https:\/\/www.help.headlight.tech\/wp-content\/uploads\/2024\/02\/image-1-100x65.png 100w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>When uploading documents to Headlight, the form&#8217;s configuration plays a crucial role in associating the uploaded document with the correct vehicle or employee automatically. Configuration Details Pre-Set References: In the configuration settings of the form, references are pre-set to link uploaded documents directly to a specific vehicle or employee. By&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[96],"ht-kb-tag":[43],"_links":{"self":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1044"}],"collection":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1044"}],"version-history":[{"count":1,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1044\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=\/wp\/v2\/ht-kb\/1044\/revisions\/1049"}],"wp:attachment":[{"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1044"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=1044"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.help.headlight.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=1044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}