Changes for page Form Builder

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

From version 19.1
edited by Admin
on 2023/04/04 18:51
Change comment: There is no comment for this version
To version 15.1
edited by Admin
on 2022/10/11 16:15
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -250,39 +250,10 @@
250 250  (% style="margin-left: 80.0px;" %)
251 251  b. Please [[click here>>attach:formbuilder-R-PaintBrush-Aug23.mp4]] to view a video showing how a button's background color was changed.
252 252  
253 -(% style="margin-left: 80.0px;" %)
254 254  \\
255 255  
256 -(% style="margin-left: 80.0px;" %)
257 -\\
255 +TEMPLATES MENU
258 258  
259 -===
260 - ===
261 -
262 -{{id name="click-thru-button"/}}
263 -
264 -=== Click-Thru Button ===
265 -
266 -Often users will want to create a pop-up or landing page that has a button that clicks through to another site or page. The specific use-case could be clicking to a partner site to download a digital edition, clicking to a non-ONEcount form, or clicking off-site to a thid-party application.
267 -
268 -To create a click-thru button, click in the cell or grid where you want the button to appear, and from the tool-bar on the right, select Form Options, and then Submit. ONEcount will place a button on your form.
269 -
270 -[[image:attach:submit-button-tool.png||thumbnail="true" height="250"]]
271 -
272 -\\
273 -
274 -Now click on the button, and click on the gear icon above the tool bar.
275 -
276 -[[image:attach:click-thru-button.png||height="250"]]
277 -
278 -Click on the Action Pull-down and select Clickthrough. In the box for Label, add whatever text you would like to appear on the button. In the URL box, put the full URL where you would like the user to be sent when they click on the button. Please note that this URL will open in a new window, leaving the pop-up on the screen. The user will need to close the pop-up.
279 -
280 -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.
281 -
282 -\\
283 -
284 -=== TEMPLATES MENU ===
285 -
286 286  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.
287 287  
288 288  [[image:attach:TEMPLATES menu Aug22.png||thumbnail="true" height="250"]]
... ... @@ -529,16 +529,10 @@
529 529  
530 530  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.
531 531  
532 -= ADVANCED FORM TECHNIQUES: =
503 +**Code for altering responses based on select type demographics:**
533 533  
534 -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.
535 -
536 536  \\
537 537  
538 -**Example 1: Code for altering responses based on select type demographics:**
539 -
540 -\\
541 -
542 542  **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.
543 543  
544 544  \\
... ... @@ -610,59 +610,6 @@
610 610  * removeInitial is assigned only once at the beginning of the script.
611 611  * All the code must be included in form extra script area.
612 612  
613 -**Example 2: Code for removing an option from the form**
614 -
615 -\\
616 -
617 -**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. 
618 -
619 -\\
620 -
621 -**Example Sample Code:**
622 -
623 -(% class="p1" %)
624 -var removeId = document.getElementsByClassName("labelId");
625 -
626 -(% class="p1" %)
627 -for(var i = 0; i < removeId.length; i++){
628 -
629 -(% class="p1" %)
630 -if(removeId[i].innerText(% class="apple-converted-space" %)  (%%)== "RemoveMePlaceHolder"){
631 -
632 -(% class="p1" %)
633 -removeId[i].parentNode.style.display="none";
634 -
635 -(% class="p1" %)
636 -}
637 -
638 -(% class="p1" %)
639 -}~/~/end of for loop
640 -
641 -\\
642 -
643 -**Steps:**
644 -
645 -* Initialize a variable to grab all the instances of the id from the form you want hidden. 
646 -** var removeId = document.getElementsByClassName("labelId"); //(notice the semi-color)//
647 -** removeId: name of variable (//you can choose a name of your choice, but remember to be consistent with the use through the code//)
648 -** labelId: replace this with the id of the field you want checked/removed
649 -** getElementsByClassName: property of javascript that allows you to get elements by the class name property
650 -* Traverse through the array of the gathered instances (of removeId), and check for the corresponding text by comparing the innerText property to  "RemoveMePlaceHolder"
651 -** removeId[i].innerText(% class="apple-converted-space" %)  (%%)== "RemoveMePlaceHolder" (//check for matches//)
652 -** RemoveMePlaceHolder: replace this with the text you want hidden
653 -* If a match is found, then grab its parentNode
654 -** removeId[i].parentNode
655 -** [i] is the index of the array where the match was found, during traversal
656 -* Change the style of the parentNode to display it as none.  This keeps the field hidden in your forms.
657 -** removeId[i].parentNode.style.display="none"; (//notice the semi-color//)
658 -
659 -\\
660 -
661 -**Note:**
662 -
663 -* All the code must be included in the form Extra Script field.
664 -* The code is to be inserted in the forms in which the value need not been shown or hidden
665 -
666 666  = DYNAMIC/PROGRESSIVE LOOK-UP: =
667 667  
668 668  This is a feature provided by ONECount.
Confluence.Code.ConfluencePageClass[0]
id
... ... @@ -1,1 +1,1 @@
1 -103120912
1 +77496614
url
... ... @@ -1,1 +1,1 @@
1 -https://info.onecount.net//wiki/spaces/OD/pages/103120912/Copy of New Form Builder
1 +https://info.onecount.net//wiki/spaces/OD/pages/77496614/Copy of New Form Builder