Here we are going to walk through the most common eForm edits; Adding Fax function, adding a default fax number and adding a signature stamp.
In providing these steps we have tried to simplify the steps as much as possible as editing eForms can be complex.
Administration as a role or the permission must be provided in order to access this area. If you do not have access, you will need to speak to your Clinic Lead/Manager in order to grant that access.
Prior to editing any eForms we recommend that you download a copy of the existing eForm, this way if you have any trouble or in testing you have issues with the eForm, you can always reload the original copy.
Accessing the eforms for editing is Administration > Forms/eForms > Manage eForms.
Adding Fax Function to an eForm
1. Click on the Pencil icon to edit the eForm.
2. Next you need to find (CTRL + F) the following: </head>
3. Go one space above this area and paste the following:
<script language="javascript" type="text/javascript" src="${oscar_javascript_path}eforms/faxControl.js"></script>4. Scroll to the bottom of the screen and Save.
Your eForm should now show the fax function on the bottom of the last page.
Set a Default Fax Number
This next section we will walk through how to add a default fax number.
1. Click on the Pencil icon to edit the eForm.
2. Next you need to find (CTRL + F) the following: </head>
3. Go one space above this area and paste the following:
<script language="javascript">
function setFaxNo(){
setTimeout('document.getElementById("otherFaxInput").value="FAXNUMBERHERE"',1000);
setTimeout('AddOtherFax()',1500);
}
</script>- Change the FAXNUMBERHERE to the appropriate fax number for the eForm, ###-###-####.
4. Next you need to add the function to the onload attribute of the <body> tag. Do not remove any functions that are already being called here.
You can use CTRL + F to search: body onload.
This will help you locate the <body> tag that contains the onload attribute.
<body onload="setFaxNo();">An example of if there are already functions being called here would look like:
5. Scroll to the bottom of the page and Save.
Your eForm should now show the fax function with the default number on the bottom of the last page.
Adding A Signature Stamp
Here we will walk through adding a signature stamp to an eform.
Prerequisites:
1. In order to have a provider's signature populate they need to have a signature set in their preferences. You can review the steps to set a signature stamp here: Setting Your Signature Stamp.
Click on the Pencil icon to edit the eForm.
2. The eForm has to have the correct jquery to apply a signature stamp.
You need to find (CTRL + F) the following: jquery
It will look like:
If you see these 3 lines exactly, you are okay to proceed. If there is a different jquery delete the existing lines and replace them with the following:
<!-- jQuery for greater functionality -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script> window.jQuery || document.write('<script src="../js/jquery-1.7.1.min.js">< \/script>') </script>
<script> window.jQuery || document.write('<script src="jquery-1.7.1.min.js">< \/script>') </script>
3. Next you need to find (CTRL + F) the following: </head>
4. Go one space above this area and paste the following:
<script language="javascript">
function SignForm() {
var provNum = $('#current_user_id').val();
document.getElementById('signature').src = "../eform/displayImage.do?imagefile=consult_sig_"+provNum+".png";
$('#signature').attr(onerror, "this.style.display='none'");
document.getElementById('signature').alt= provNum;
}
</script>5. Next you need to add the function to the onload attribute of the <body> tag. Do not remove any functions that are already being called here.
You can use CTRL + F to search: body onload.
This will help you locate the <body> tag that contains the onload attribute.
You want to add SigForm() as the first function.
No other functions, <body onload=""> will be updated to:
<body onload="SignForm();">OR with one or more functions, again be sure to add SignForm as the first function, it would look like:
6. Next, use CTRL+F to search for img id. This will help you find the <img> element that corresponds to the background image of the eForm where the signature is requested.
For most eForms, this will be the first <img> element in the code.
If the signature appears on page 2 or later, locate the <img> element that matches the correct page.
Once you have located the image element, paste the following below it:
<img id="signature" name="signature" src="${oscar_image_path}BNK.png" width="150" height="40" style="position: absolute; left: 1px; top: 1px;z-index: 20">
<input type="hidden" id="current_user_id" name="current_user_id" oscardb=current_user_id>7. Save the eForm at this point.
8. Next you will need to set the position of the signature on the eForm.
While still in Administration > Forms/eForms > Manage eForms, locate the eform name you are working on and click on it, this will open the forms for viewing.
You will see a broken image in the upper most left corner as the current position is left: 1px; top: 1px;.
Place your cursor over this broken image and right click, locate Inspect and click.
This will open a new screen showing placement and code of the eForm. The signature will be highlighted. With the right hand box showing you the current pixel location.
The left hand box will allow you to change values in order to fine tune placement. Once you find the correct place you want to note this.
You can do the same if you find the height or width needs to be adjusted, be sure to note those locations as well.
9. You can close the eForm and go back to editing of the eForm.
Use CTRL+F to search for <img id="signature"...> the tag you added in Step 6, and update the new position (and size values).
10. Last step is to Save your changes.
Please reach out to Customer Support if you have any issues or follow up questions, via email at help@oscarprodesk.ca , or you can call our support line at 1-866-935-5367.