Links of Interest
Badge Login Form: https://ejspecialties.eazyworks.com/forms.aspx
Application Login (Backend): https://EJSpecialties.EazyWorks.com/Login.aspx
Sample Customer Badge Form: https://ejspecialties.eazyworks.com/Forms-Abbott-Nutrition.aspx
Contact Person: Carolyn Dowdy This email address is being protected from spambots. You need JavaScript enabled to view it.
Creating a New Master Page
- Be sure to Update any committments that may have been done by somebody else. Pending Changes/Update.
- Create a new masterpage. File, New, File. Select 'Master Page'. Make sure 'Place code in seperate file' is checked. Name the master page MasterPageCustomerFormname.master
- If there is a customer masterpage, copy over its contents to the new masterpage.
-
- Add/Modify copyright notice
- Modify the title tag, see example below.
- Change the XXX-Header, XXX-Sidebar, and Footer images (Dependant on the situation). See the image below as an example.
-
- From an existing VB file, With the exception of the Partial Class line, copy over all other content to the the new file.
- At the bottom of the New Master Page, you will see the following code. Change the FormSubmitXXX.js to the new name (FormSubmitCustomerFormname.js).
Creating a New FormSubmit JS File
- Create a new JS. File, New, File. Select 'JScript File'. FormSubmit file: FormSubmitCustomerFormname.js
- If available, copy of the content from a similar (same customer) FormSubmit file.
- Replace the arItemsXXX_XX with a new unique arItemsXXX_XX( a lot of times e.g. 75). This should also edit the items in the following step.
- Now you have to edit the changes in the Option Array. The changes are highlighted below. See the BEFORE and AFTER images.
- Change out the MkFrmXXX function name and call (3 changes)
FormSubmit.js Modifications
- If there is not any previous setting for the email log in, then you will have to make additions in the FormSubmit.js. There will be several changes in function EmailSub(e) and in function SubmitEmail().
- Within function EmailSub(e): Add the lines as in the highlighed examples below. An additional modification will need to be made to the 'trimming' of the email. See the notes: /* Subtract the number of characters in the company email address including '@' and '.Com'.
E.g. @Tap.com = 8 */ - Within function SubmitEmail(): Make changes similar to the previous step.
Change the CSS file
- Add the header class in Layout.css. Most of the time this is not needed because it can use the same class as an existing customer. If you are adding new headers and/or badges, take care that the dimensions match those in the CSS file.
- #header-img, #spcorp-header-img, #gsk-header-img, #abbott-header-img, #wyeth-header-img
{
width: 800px;
height: 160px;
margin: 0px auto 0px auto;
} - #abbott-badges-img
{
width: 800px;
height: 2000px;
margin: 0px auto 0px auto;
}
Create New Web Form
- Create a new Web Form. File, New, File. Select 'Web Form'. Make sure 'Place code in seperate file' is checked. Name the Web Form Forms-Customer-Formname.aspx
- Copy out the contents of a similar form, use the same customer if you can.
- Paste the contents into the newly created file, but preserve the first line of code.
- If needed, change the divBadgeTable title. EJS should have provided this information.
- Copy over the contents of the related VB file. Again, preserve the top line of code. No changes are needed in the contents copied over.
Modify Web.Config
Even though the following changes will be made to the web.config file on the development system, they will have to be repeated over to the LIVE system. This is because the web.config file is not copied/sync'd over to the LIVE system.
You will be adding the new Option Array Items that you placed in the FormSubmitXXX.js file. See the sample of added items below.
Change the Indus.js File
- Add the array (copy from the small JS file).
- sXXX1opt (Centocor, Pfizer)
- Add section for popup (Badge Abbott NovaQuest), copy/paste of existing case statement
- Change the name within the case statement
- replace all arItemsXXX (13 Occurences)
- Change the 'Abbott NovaQuest' in the first HTML line after the case statement.
- Add Section for Print Preview, copy/paste of existing case statement
- Change the name within the case statement
- Replace all arItemsXXX (13 occurences)
- Add additional Data Fields (optional)
- Add database name etc.
- Remove Credit card check
- Test the application by entering a new form.
- Test the email page: forms.aspx