{"id":8254,"date":"2023-09-19T09:18:41","date_gmt":"2023-09-19T08:18:41","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/?post_type=docs&#038;p=8254"},"modified":"2023-09-19T09:18:42","modified_gmt":"2023-09-19T08:18:42","slug":"electronic-signature","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/electronic-signature\/","title":{"rendered":"Electronic Signature"},"content":{"rendered":"\n<p>To set up the electronic signature, Follow the steps below:<\/p>\n\n\n\n<p class=\"has-luminous-vivid-amber-color has-text-color\"><strong>Necessary Items<\/strong><\/p>\n\n\n\n<p>The electronic signature can be added to a training environment on Cirrus Shield. These environments must have the following objects or else the signing does not work (the API names must be exactly the same):<\/p>\n\n\n\n<p>\u00b7 Day\/Planning<\/p>\n\n\n\n<p>\u00b7 Participant Day<\/p>\n\n\n\n<p>If these objects are not present in the environment, they must be created with specific parameters.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-luminous-vivid-amber-color has-text-color\"><strong>Day<\/strong><\/p>\n\n\n\n<p>The day\/Planning object must have the following custom fields (with the same API name):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Field<\/strong><\/td><td><strong>API Name<\/strong><\/td><td><strong>Type<\/strong><\/td><\/tr><tr><td>Sessions<\/td><td>Sessions_de_Formation&nbsp;<\/td><td>Loop Relationship (Sessions)<\/td><\/tr><tr><td>Start Time&nbsp;<\/td><td>Heure_de_debut&nbsp;<\/td><td>PickList&nbsp;<\/td><\/tr><tr><td>End Time&nbsp;<\/td><td>Heure_de_fin&nbsp;<\/td><td>PickList&nbsp;<\/td><\/tr><tr><td>Afternoon &nbsp;<\/td><td>Apres_Midi&nbsp;<\/td><td>Check Box&nbsp;<\/td><\/tr><tr><td>All Day&nbsp;<\/td><td>Toute_la_journee&nbsp;<\/td><td>Check Box<\/td><\/tr><tr><td>Morning<\/td><td>Matin&nbsp;<\/td><td>Check Box<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The picklist for <strong>\u00ab Start Time <strong><strong>\u00bb<\/strong><\/strong><\/strong> and <strong><strong>\u00ab<\/strong> End Time <strong>\u00bb<\/strong><\/strong> should contain time values like the following example:<\/p>\n\n\n\n<p>00:00&nbsp;<br>00:30&nbsp;<br>01:00&nbsp;<br>01:30&nbsp;<br>02:00&nbsp;<br>02:30&nbsp;<br>03:00&nbsp;<br>03:30&nbsp;<br>04:00&nbsp;<br>04:30&nbsp;<br>05:00&nbsp;<br>05:30&nbsp;<br>06:00&nbsp;<br>06:30&nbsp;<br>07:00&nbsp;<br>07:30&nbsp;<br>08:00&nbsp;<br>08:30&nbsp;<br>09:00&nbsp;<br>09:30&nbsp;<br>10:00&nbsp;<br>10:30&nbsp;<br>11:00&nbsp;<br>11:30&nbsp;<br>12:00&nbsp;<br>12:30&nbsp;<br>13:00&nbsp;<br>13:30&nbsp;<br>14:00&nbsp;<br>14:30&nbsp;<br>15:00&nbsp;<br>15:30&nbsp;<br>16:00&nbsp;<br>16:30&nbsp;<br>17:00&nbsp;<br>17:30&nbsp;<br>18:00&nbsp;<br>18:30&nbsp;<br>19:00&nbsp;<br>19:30&nbsp;<br>20:00&nbsp;<br>20:30&nbsp;<br>21:00&nbsp;<br>21:30&nbsp;<br>22:00&nbsp;<br>22:30&nbsp;<br>23:00&nbsp;<br>23:30\u202f&nbsp;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-luminous-vivid-amber-color has-text-color\"><strong>Day- Participant<\/strong><\/p>\n\n\n\n<p>The Day\/Participant object must have the following custom fields (with the same API name):<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Field<\/strong><\/td><td><strong>API Name<\/strong><\/td><td><strong>Type&nbsp;<\/strong><\/td><\/tr><tr><td>Day<\/td><td>Jour&nbsp;<\/td><td>Lookup Relationship (Day<\/td><\/tr><tr><td>Participant<\/td><td>Participant&nbsp;<\/td><td>Lookup Relationship (Participants)<\/td><\/tr><tr><td>Morning Check-in<\/td><td>Emargement_matin&nbsp;<\/td><td>File<\/td><\/tr><tr><td>Afternoon Check-in<\/td><td>Emargement_apres_midi&nbsp;<\/td><td>File<\/td><\/tr><tr><td>All day Check-in<\/td><td>Emargement_toute_la_journee&nbsp;<\/td><td>File<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-luminous-vivid-amber-color has-text-color\"><strong>Custom button<\/strong><\/p>\n\n\n\n<p>We must add a custom button to the <strong><strong><strong><strong>\u00ab<\/strong><\/strong><\/strong><\/strong> <strong>Day <strong><strong><strong><strong><strong>\u00bb<\/strong><\/strong><\/strong><\/strong><\/strong><\/strong> object with the following parameters and codes:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Valeur&nbsp;<\/strong><\/td><\/tr><tr><td>Label<\/td><td>Electronic Signature<\/td><\/tr><tr><td>Name<\/td><td>Emargement_electronique<\/td><\/tr><tr><td>Icon<\/td><td>far fa-pen-alt&nbsp;<\/td><\/tr><tr><td>Display Type<\/td><td>Detail Page Button<\/td><\/tr><tr><td>Behaviour\u202f&nbsp;<\/td><td>Ex\u00e9cute Javascript&nbsp;<\/td><\/tr><tr><td>Call Function<\/td><td>emarge();&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>function emarge() \n\n{ \n\n\u202f \u202f var RecordID = GetRecordGUID(); \n\n\u202f \u202f var objOrg = GetOrganizationInfo(); \n\n\u202f \u202f var objUser = GetCurrentloggedInUserInfo(); \n\n\u202f \u202f  \n\n\u202f \u202f const uri= 'https:\/\/emargement.cirrus-shield.net\/' + objUser.Language + '\/emargement?orgid=' + objOrg.Id + '&amp;jour=' + RecordID; \n\n\u202f \u202f \n\n\u202f \u202f window.open(uri, \"_blank\"); \n\n \n\n\u202f \u202f \/\/alert(RecordID ); \n\n\u202f \u202f \/\/alert(objOrg.Id); \n\n\u202f \u202f \/\/alert(objUser.Language); \n\n} \n<\/code><\/pre>\n\n\n\n<p><strong>Extension<\/strong><\/p>\n\n\n\n<p>For the sign-in to work, you need the <strong><strong><strong>\u00ab<\/strong><\/strong><\/strong> <strong>Sign-in_Electronique <strong><strong><strong><strong>\u00bb<\/strong><\/strong><\/strong><\/strong><\/strong> extension. It can be added from the \u201cExtension\u201d tab in the setup environment.<\/p>\n\n\n\n<p>After adding the extension, tap on <strong><strong>\u00ab<\/strong><\/strong> <strong>Details <strong><strong><strong>\u00bb<\/strong><\/strong><\/strong><\/strong> and add the Cirrus Shield username and password to use (the system Admin account).<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":0,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_tag":[],"class_list":["post-8254","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/8254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=8254"}],"version-history":[{"count":1,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/8254\/revisions"}],"predecessor-version":[{"id":8255,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/8254\/revisions\/8255"}],"next":[{"title":"Cirrus Shield Basics","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/cirrus-shield-basics\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/37"}],"prev":[{"title":"Admin Videos Training","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/admin-videos-training\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/827"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=8254"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=8254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}