Changes for page Form Builder

Last modified by Sachin Patil on 2024/08/30 07:28

From version 21.5
edited by Sachin Patil
on 2024/08/30 06:43
Change comment: There is no comment for this version
To version 21.1
edited by Admin
on 2023/08/14 17:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.sachin
1 +XWiki.Admin
Content
... ... @@ -1,3 +1,4 @@
1 +
1 1  The Form Builder tool allows you to create, edit, delete, and manage forms and pop-ups in a WYSIWYG way. Creating a form is as simple as defining basic form information, choosing which questions/fields will be included on the form, selecting which products and/or packages you want included in the form, and then designing the look and feel. You can also add a thank-you e-mail and message to your form.  When a user completes and submits a form, all of the demographic and transaction information from the form is saved in the ONEcount database, and any transactions that are captured by the form are immediately stored in the ONEcount database.
2 2  
3 3  What is unique about the ONEcount Form Builder is that questions, products and packages are not defined in the form, but elsewhere in the ONEcount system. This allows your organization to have some level of control over the information and data collected by the forms, while allowing any qualified user to build and edit forms. The presentation layer–the form–is separated from the data layer, meaning your web designer can't change field options or the business logic behind your products and packages.
... ... @@ -6,6 +6,7 @@
6 6  
7 7  **Changes made to form information, form layout, order of questions, and optional validations are form-specific and will NOT universally change forms; these changes will be applied only to the form you are working on.**
8 8  
10 +\\
9 9  
10 10  Form-related tasks include:
11 11  
... ... @@ -15,11 +15,13 @@
15 15  * creating source codes that are used to track the source of a name/transaction;
16 16  * and creating individually branded, designed forms.
17 17  
20 +\\
18 18  
19 19  The first task listed above – creating questions is accomplished by clicking the Demographics tab under SETUP on the left-hand men. The next two tasks – creating new forms and managing existing forms – are carried out using the Form Builder tool under SETUP Creating source codes is handled under __[[Source Codes>>url:http://docs.onecount.net:8090/display/OD/Source+Codes+-+How+to+Create+and+Manage+Source+Codes||shape="rect"]]__ and creating branded forms is handled under __[[Brands>>url:http://docs.onecount.net:8090/display/OD/Brand+-+How+to+Create+and+Manage+Brands||shape="rect"]]__. All of these tools are found under SETUP
20 20  
21 21  [[image:attach:Form-builder-nav.png||height="250"]]
22 22  
26 +\\
23 23  
24 24  **STEP 1: Defining the Form**
25 25  
... ... @@ -33,6 +33,7 @@
33 33  
34 34  //A pop-up landing page above.//
35 35  
40 +\\
36 36  
37 37  You may give your Form a description. You will have an option to use this title when designing the form in Phase D. If you want to use a different title when designing the form you may do so by using a custom “text” content block when designing the form.
38 38  
... ... @@ -45,63 +45,24 @@
45 45  * **Vertical Position:** Where the pop-up appears vertically on the page. This is relative to the entire web page. Be careful if your site has long pages or uses infinite scroll, because the pop-up may render "below" the user's screen causing some confusion.
46 46  * **Slide Positon:** This describes what part of the screen the pop-up will appear from (ie., enter stage-left)
47 47  * **Pop-Up Delay:** This allows you to program a slight delay into the pop-up so that it doesn't appear immediately on the screen.
48 -* **Pop-up Definition :**
49 -** (% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt" %)**Pop-up Shadow : **This will add the shadow to the pop-up box .
50 -** (% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt" %)**Pop-up Radius : **This will change the shape of your pop-up and we can make pop-up round or ellipse.
51 -** (% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Pop-up border width & Pop-up border Color : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will add the extra border width to the popup also you can change the width color.
52 -* (((
53 -**Pop-up Close Button Definition :*** (((
54 -(% class="western" style="text-align:left" %)
55 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Color & Close Button Text Color: **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will change the close button color also the text used in the close button .
56 -)))
57 -* (((
58 -(% class="western" style="text-align:left" %)
59 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Text : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %) This can change the text of close button like X, close , end whatever you want.
60 -)))
61 -* (((
62 -(% class="western" style="text-align:left" %)
63 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Position : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This can align the close button left or right. you can change the position of close button.
64 -)))
65 -* (((
66 -(% class="western" style="text-align:left" %)
67 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Shape :**(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %) (% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt" %)This will change the shape of your close button and we can make pop-up round,ellipse or rectangle .
68 -)))
69 -* (((
70 -(% class="western" style="text-align:left" %)
71 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Font Size : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will change help to change the text size of close button.
72 -)))
73 -* (((
74 -(% class="western" style="text-align:left" %)
75 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Close Button Height  & Close Button Width : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will help to change the height and width of the close button.
76 -)))
77 -* (((
78 -(% class="western" style="text-align:left" %)
79 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Vertical Position : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will help to move the close button vertical if you want to move the close button outside the popup.
80 -)))
81 -)))
82 -* (((
83 -(% class="western" style="text-align:left" %)
84 -**Pop-up Background Light-Box :**
85 85  
86 -*
87 -
88 -(% class="western" style="text-align:left" %)
89 -(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)**Pop-up Background Color & Pop-up Background Opacity : **(% style="line-height: 100%; font-family: Liberation Sans, sans-serif; font-size: 10pt; font-variant: normal; color: rgb(51, 51, 51); font-style: normal; font-variant: normal; color: rgb(51, 51, 51); font-style: normal" %)This will change the pop-up background you can change the color and the opacity of the color.
90 -)))
91 -
92 92  If you want to direct users to a specific page after the form is submitted, you can place the url into the "Thank you page URL" field.
93 93  
94 94  Select a submission option. Submission Option is a feature that allows ONEcount to require a user to subscribe to a product or package in order to submit the form. An example of where this might be used is when you e-mail a link to a subscription form for requalification of a controlled circulation product. Very often users will see their information pre-populated in the form, but won't check the box subscribing (or renewing) them to the product. This option allows you to either force the user to to subscribe to a product in order to submit the form, remind the user that he or she has not subscribed but allow them to continue anyway, or just accept the day with no warning and no subscription requirement.
95 95  
58 +\\
96 96  
97 97  [[image:attach:selection-required.png||height="216"]]
98 98  
62 +\\
99 99  
64 +\\
100 100  
101 101  Step 2: Define your demographic questions.
102 102  
103 103  [[image:attach:AddingDemoQuesAuf22.png||height="400"]]
104 104  
70 +\\
105 105  
106 106  1. Start by adding your first demographic questionin the Demo column. All ONEcount questions that are in your question inventory will appear in the dropdown menu list.  You may also type the question name or number into the dropdown box to find a question to add.
107 107  1. VALIDATIONS: If needed, select validation(s) to require a specific format for responses to this question. Allowed validations are: alphanumeric, date, email, email-match, or required field. Be careful with alphanumeric because it does not include any punctuation, meaning you could not enter (305) 555-1212. For the email validation, ONEcount only checks that the e-mail address matches an appropriate format; it does not validate that the e-mail address really exists. Email match presents two e-mail boxes to the user and requires that both entries match. This is a way to reduce data entry errors from people entering the wrong e-mail addresses in your forms. Multiple validations can be added to each question.
... ... @@ -111,6 +111,7 @@
111 111  1. You can not edit a row once it had been created; if you find an error, you must delete it
112 112  1. The order of the questions on this page is not important.
113 113  
80 +\\
114 114  
115 115  PHASE C: Add Products and Packages.
116 116  
... ... @@ -128,6 +128,7 @@
128 128  1. To add additional products- click the add product button in the right hand corner.
129 129  1. To remove a product, click an X
130 130  
98 +\\
131 131  
132 132  **PACKAGES:** Add a group of products, like a digital and print subscription, multiple issue magazine subscription, a magazine subscription and e-newsletter, digital access or other bundled resources with a term duration (expiration date) or access limit. Optional: to have a package automatically selected, choose which option to have selected using the “Pre-Selection” dropdown.
133 133  
... ... @@ -137,6 +137,7 @@
137 137  1. To add additional packages- click the add product button in the right hand corner.
138 138  1. To remove a package, click the X
139 139  
108 +\\
140 140  
141 141  **Pre-selection of Products and Packages with query string **
142 142  
... ... @@ -146,7 +146,9 @@
146 146  
147 147  &prods=10001,20001
148 148  
118 +\\
149 149  
120 +\\
150 150  
151 151  PHASE D: Designing the Form
152 152  
... ... @@ -156,11 +156,13 @@
156 156  
157 157  Use the editor to customize the look and feel of your form webpage. To add page and form elements, drag the element(s) from the menu on the right to where you want them to appear. Sections of the Elements menu can be collapsed for ease of use to drag in content blocks that are located lower in the menu.
158 158  
130 +\\
159 159  
160 160  To create additional content areas, start by adding a “Grid Template” from the Elements menu.
161 161  
162 162  [[image:attach:FB Grid Template.png||height="250"]]
163 163  
136 +\\
164 164  
165 165  BUILD FORMS FROM SCRATCH
166 166  
... ... @@ -173,6 +173,7 @@
173 173  11. Simply select your choice of component from the options in the right-hand panel with your mouse
174 174  11. Drag it over to the spot on the canvas, as you prefer
175 175  
149 +\\
176 176  
177 177  Let's start with selecting a grid format from the 'Grid Templates' option in the right-hand panel. This helps with adding elements to the canvas, eventually your form, in an organized/disciplined manner.
178 178  
... ... @@ -180,6 +180,7 @@
180 180  
181 181  [[image:attach:formbuilder-three-column-demosAug23.png||height="250"]]
182 182  
157 +\\
183 183  
184 184  1. First, let's expand the 'Grid Templates' option by selecting it.
185 185  1. From there, select the preferred column type, then drag it to the canvas, as shown below (three-column grid selected)
... ... @@ -187,16 +187,19 @@
187 187  (% style="margin-left: 40.0px;" %)
188 188  [[image:attach:formbuilder-drag-a-grid-onto-canvas.png||height="250"]]
189 189  
165 +(% style="margin-left: 40.0px;" %)
166 +\\
190 190  
191 191  (% style="margin-left: 40.0px;" %)
192 192  3. To populate the columns, let's choose from the 'Demographics' option.
193 193  
194 -1.
171 +1.
195 195  11. Select First Name and drag it to the left-most cell, followed by Last Name to the middle cell, next email to the last one.
196 196  
197 197  (% style="margin-left: 40.0px;" %)
198 198  [[image:attach:formbuilder-drag-fields-from-toolbar-onto-canvasAug23.png||height="250"]]
199 199  
177 +\\
200 200  
201 201  (% style="margin-left: 40.0px;" %)
202 202  4. The three-column grid will look as follows:
... ... @@ -207,7 +207,7 @@
207 207  (% style="margin-left: 40.0px;" %)
208 208  5. To add Captcha to the form:
209 209  
210 -1.
188 +1.
211 211  11. Select 'Form' from the right-hand panel[[image:attach:Screen Shot 2022-08-23 at 4.52.47 PM.png||thumbnail="true" width="150"]]
212 212  11. Select Captcha and drag it over to the spot on the canvas.  In this case, we choose below the 3-column grid
213 213  
... ... @@ -217,7 +217,7 @@
217 217  (% style="margin-left: 40.0px;" %)
218 218  6. To add a 'Submit' button:
219 219  
220 -1.
198 +1.
221 221  11. Select it from the 'Form' option and,
222 222  11. Drag it to the spot you prefer on the canvas,
223 223  11. Eventually this position will impact how your final form is displayed)
... ... @@ -228,10 +228,14 @@
228 228  (% style="margin-left: 40.0px;" %)
229 229  [[image:attach:formbuilder-completed-formAug23.png||height="250"]]
230 230  
209 +(% style="margin-left: 40.0px;" %)
210 +\\
231 231  
212 +\\
232 232  
233 233  ELEMENTS MENU
234 234  
216 +\\
235 235  
236 236  To add elements, like titles, text blocks, images/logos, products/packages, or questions/fields use the Elements menu (image).
237 237  
... ... @@ -265,18 +265,20 @@
265 265  (% style="margin-left: 80.0px;" %)
266 266  b. Please [[click here>>attach:formbuilder-R-PaintBrush-Aug23.mp4]] to view a video showing how a button's background color was changed.
267 267  
250 +(% style="margin-left: 80.0px;" %)
251 +\\
268 268  
253 +(% style="margin-left: 80.0px;" %)
254 +\\
269 269  
270 -=== ===
256 +===
257 + ===
271 271  
272 -=== ===
273 -
274 274  {{id name="click-thru-button"/}}
275 275  
276 -=== ===
261 +===
262 + ===
277 277  
278 -=== ===
279 -
280 280  {{id name="click-thru-button"/}}
281 281  
282 282  === Click-Thru Button ===
... ... @@ -287,6 +287,7 @@
287 287  
288 288  [[image:attach:submit-button-tool.png||thumbnail="true" height="250"]]
289 289  
274 +\\
290 290  
291 291  Now click on the button, and click on the gear icon above the tool bar.
292 292  
... ... @@ -296,25 +296,8 @@
296 296  
297 297  A future version of ONEcount will track these click-throughs as "completions" in both the form and segment analytics, giving you insights into how many people are clicking through to the URL.
298 298  
284 +\\
299 299  
300 -=== Click-Thru Image ===
301 -
302 -Same as click throue button we have can aslo count the completions on image click throue. To setup this we need to use link-box and image
303 -
304 -First we need to drag the link-box and the inside it we need to drag image.
305 -
306 -after this pick the link-box from layers or you can find it on canvas and the go to the gear button there you can see extra option called completion which by default set as yes which means it will count the completion , you can select  "No" if you do't want to count completion.
307 -
308 -
309 -$("#button or image id or element id").click(function(){
310 -setInterval(function(){window.parent.postMessage("closepopup", "*");},1000);
311 -});
312 -
313 -
314 -=== Close pop-up after Action: ===
315 -
316 -So for Click-Thru Image and Button popup will automaicaly close after it redirects to the target page and if you want to close popup after any specific action like form-sumition or clicking on any element the you can use the below extra script.
317 -
318 318  === TEMPLATES MENU ===
319 319  
320 320  The Templates menu contains a set of four pre-designed set of templates you can choose from. Clicking on the Templates option, (found on the right-hand panel) displays the template set.
... ... @@ -321,6 +321,7 @@
321 321  
322 322  [[image:attach:TEMPLATES menu Aug22.png||thumbnail="true" height="250"]]
323 323  
292 +\\
324 324  
325 325  To use a template, drag-n-drop the preferred template from the right-hand panel to the canvas.
326 326  
... ... @@ -328,6 +328,7 @@
328 328  
329 329  [[image:attach:Drag-n-DropTemplate.png||height="250"]]
330 330  
300 +\\
331 331  
332 332  The various types of templates include:
333 333  
... ... @@ -342,6 +342,7 @@
342 342  
343 343  Please Note: For ease of use, please ensure the canvas is empty before the drag-n-drop.
344 344  
315 +\\
345 345  
346 346  STYLE MENU
347 347  
... ... @@ -357,11 +357,13 @@
357 357  11. DECORATIONS: Edit background colors, borders of content blocks or individual elements.
358 358  111. Make sure the Opacity Slider is set above 10% for color edits to be visible. It is recommended to move the Opacity Slider all the way to the right.
359 359  
331 +\\
360 360  
361 361  To alter the text of a button (like a submit, etc) select the button and click on the gear icon on the upper-right:
362 362  
363 363  [[image:attach:editor-object-settings.png||height="250"]]
364 364  
337 +\\
365 365  
366 366  To preview, click the Preview link at the top.
367 367  
... ... @@ -375,6 +375,7 @@
375 375  1. Open the component settings by clicking the gear icon at the top. ()
376 376  1. Paste or type the url destination for the link into the “Href” field. You may also add a title and specify a target for the link.
377 377  
351 +\\
378 378  
379 379  PHASE E: EMAIL CONFIRMATION
380 380  
... ... @@ -396,6 +396,7 @@
396 396  Enter the subject of the email in the "Update Thank You Email Subject" field.
397 397  Enter the email address for BCC in the "Email Confirmation BCC" field.
398 398  
373 +\\
399 399  
400 400  PHASE F: DESIGNING THANK YOU PAGE
401 401  
... ... @@ -417,6 +417,7 @@
417 417  
418 418   [[image:attach:FormDefn-TYURLAug23.png||height="250"]]
419 419  
395 +\\
420 420  
421 421  2. Choose a preferred template from the 'Thank you Page Design' tab.  If step 1. is not provided, step 2. takes priority, if provided.
422 422  
... ... @@ -436,18 +436,23 @@
436 436  
437 437  [[image:attach:TYDeleteIconAug23.png||height="250"]]
438 438  
415 +\\
439 439  
440 440  Please [[click here>>attach:formBuilder-TYSelectDelete-Rayaan-OC2201.mp4]] to view video showing how to select and delete a 'Thankyou Page Design.'
441 441  
419 +\\
442 442  
421 +\\
443 443  
444 444  TO DUPLICATE A FORM
445 445  
446 446  1. From the “Manage Forms” page click the copy icon at the end of the row for the form you wish to copy. ()
447 447  
427 +\\
448 448  
449 449  TO EDIT A FORM
450 450  
431 +\\
451 451  
452 452  1. Click the Pencil Icon () towards the end of the row of the Form that you wish to edit. ()
453 453  
... ... @@ -455,6 +455,7 @@
455 455  
456 456  1. Click on the Trash Icon () towards the end of the row of the Form that you wish to delete. ()
457 457  
439 +\\
458 458  
459 459  **~ **
460 460  
... ... @@ -462,7 +462,7 @@
462 462  (((
463 463  (% class="pagetitle with-breadcrumbs" %)
464 464  (((
465 -(% id="HNewFormBuilderNotes:" class="with-breadcrumbs" %)
447 +(% class="with-breadcrumbs" %)
466 466  = New Form Builder Notes: =
467 467  )))
468 468  )))
... ... @@ -489,16 +489,19 @@
489 489  
490 490  [[image:attach:image2020-10-9_14-8-52.png||height="250"]]
491 491  
474 +\\
492 492  
493 493  After selecting template type as landing page select redirect form from the drop down. Drag and Drop the package or product from blocks to the canvas from design tab. Below is the image of landing page design.
494 494  
495 495  [[image:attach:image2020-10-9_14-9-30.png||height="250"]]
496 496  
480 +\\
497 497  
498 498  The images on the design is from the URL present to that package or product as shown in image below.
499 499  
500 500  [[image:attach:image2020-10-9_14-9-51.png||height="250"]]
501 501  
486 +\\
502 502  
503 503  = ADDING BRAND HEADER AND FOOTER TO FORMS: =
504 504  
... ... @@ -510,9 +510,11 @@
510 510  
511 511  * By selecting a brand from the dropdown present in tab definition tab.
512 512  
498 +\\
513 513  
514 514  Once brand is selected you can drag brand header and footer from design tab and edit them. Editing brand header and footer gives flexibility to remove or change design or text for the particular form.
515 515  
502 +\\
516 516  
517 517  = CREATING POPUPS USING FORM BUILDER: =
518 518  
... ... @@ -533,13 +533,14 @@
533 533  
534 534  ===== You can use this to ensure CNAME set up is done correctly. This box will be auto filled with <client>-[[reg.onecount.net>>url:http://reg.onecount.net||shape="rect"]] but If you need to gate a page or section on site [[abc.com>>url:http://abc.com||shape="rect"]] then enter oc.[[abc.com>>url:http://abc.com||shape="rect"]] in text box (because popup will appear on [[abc.com>>url:http://abc.com||shape="rect"]], This step is just for CNAME setup validation). If CNAME setup is not done, then it will throw warning while saving Product/Package. Also, the pop-up won't work on your site. =====
535 535  
536 -===== ·      Popup setup for targeting: Once popup is created you need to create the action in action manager. While creating the action manager select popup form created. If popup should appear on site [[abc.com>>url:http://abc.com||shape="rect"]] then enter oc.[[abc.com>>url:http://abc.com||shape="rect"]] in Target Domain. We will check if CNAME set up is done correctly, if not error will be warning. =====
523 +===== ·      Popup setup for targeting: Once popup is created you need to create the action in action manager. While creating the action manager select popup form created. If popup should appear on site [[abc.com>>url:http://abc.com||shape="rect"]] then enter oc.[[abc.com>>url:http://abc.com||shape="rect"]] in Target Domain. We will check if CNAME set up is done correctly, if not error will be warning. =====
537 537  
538 -**Extra Scripts/Extra Styles:**
539 -These boxes allow you to add additional Javascript code or CSS to your forms to alter the appearance or function of the form.
525 +**Extra Scripts/Extra Styles:
526 +**These boxes allow you to add additional Javascript code or CSS to your forms to alter the appearance or function of the form.
540 540  
541 541  [[image:attach:image2020-10-9_14-10-26.png||height="250"]]
542 542  
530 +\\
543 543  
544 544  One use for these boxes is to add Javascript code to your form that will change the questions and/or question responses based on a user’s response to a question on the form.
545 545  
... ... @@ -547,18 +547,23 @@
547 547  
548 548  With Extra Scripts/Extra Styles, you can add features to your form or popup to enhance its look-and-feel as well as operations.  Following are examples of how this can be achieved.
549 549  
538 +\\
550 550  
551 551  **Example 1: Code for altering responses based on select type demographics:**
552 552  
542 +\\
553 553  
554 554  **Example:** If a form contains a question which ask whether the user is a doctor or a patient. If the user selects doctor the demographic fields which are related to doctor will appear (type of specialty, NPI #, medical degree achieved, etc.). Otherwise, demographic fields for a patient will appear on the form. This modifications helps to show user only those demographic fields which are related to their previous answers.
555 555  
546 +\\
556 556  
557 557  **Example Sample Code:**
558 558  
550 +\\
559 559  
560 560  removeInitial = [1043,859,659,683,699,707,723,731,747,771,779,787,795,867,915,739,763,1059,1075,1083,1091,755];
561 561  
554 +\\
562 562  
563 563  var hcpObj = {
564 564  
... ... @@ -578,6 +578,7 @@
578 578  
579 579  document.getElementById("q_id_1051").onchange = function(){autoDropDown(hcpObj)};
580 580  
574 +\\
581 581  
582 582  var hcpNoObj = {
583 583  
... ... @@ -595,7 +595,9 @@
595 595  
596 596  document.getElementById("q_id_683").onchange = function(){autoDropDown(hcpNoObj)};
597 597  
592 +\\
598 598  
594 +\\
599 599  
600 600  **Steps:**
601 601  
... ... @@ -609,6 +609,7 @@
609 609  * getElementById("q_id_1051") – 1051 will be the demographics id which will be same as dropDownId.
610 610  * autoDropDown(hcpNoObj) – autoDropDown() function is called and object which is created above will be passed as a parameter this function implements the response base altering the demographics.
611 611  
608 +\\
612 612  
613 613  **Note:**
614 614  
... ... @@ -617,9 +617,11 @@
617 617  
618 618  **Example 2: Code for removing an option from the form**
619 619  
617 +\\
620 620  
621 -**Example:** A form contains a collection of questions.  The client decides that a question/option needs to be done away with, but without disturbing the rest of the form. You want to have it removed or hidden.  You can make this field invisible without changing anything else about the form, using the Extra Script option.  Without re-designing the form, we are able to remove the unwanted option by using the sample code below.  
619 +**Example:** A form contains a collection of questions.  The client decides that a question/option needs to be done away with, but without disturbing the rest of the form. You want to have it removed or hidden.  You can make this field invisible without changing anything else about the form, using the Extra Script option.  Without re-designing the form, we are able to remove the unwanted option by using the sample code below. 
622 622  
621 +\\
623 623  
624 624  **Example Sample Code:**
625 625  
... ... @@ -641,6 +641,7 @@
641 641  (% class="p1" %)
642 642  }~/~/end of for loop
643 643  
643 +\\
644 644  
645 645  **Steps:**
646 646  
... ... @@ -658,6 +658,7 @@
658 658  * Change the style of the parentNode to display it as none.  This keeps the field hidden in your forms.
659 659  ** removeId[i].parentNode.style.display="none"; (//notice the semi-color//)
660 660  
661 +\\
661 661  
662 662  **Note:**
663 663  
... ... @@ -686,4 +686,4 @@
686 686  
687 687  The Lookup link takes you to the login/sign-in page.
688 688  
689 -
690 +\\