Personal tools

Log in

Changes

From All n One's bxp software Wixi

Jump to: navigation, search

Form Section Group

1,822 bytes added, 19:14, 25 August 2015
no edit summary
= Overview =
 
 
Section Groups are a divider for a script in the same way a section header is.
UsageSection Group is also extensively used in Quality Assurance forms to allow the grouping of answers for scoring purposes.  [[File:Section_Group_Collapsible.png|600px]]   = Creating a Section Group = 
# Add a "Section Group" to your script, giving it an appropriate title
= Managing a Section Group =  From time to time new questions come along and need to be added to existing section groups. These are the steps for managing that process. # Log into bxp# ''Form Management > Form - Primary Management > Form - Edit > Choose your form''# Click the yellow Question Management option and the console will change# Choose "Field Mapping - Original" and scroll to the bottom# New fields are usually named "New" so update any new questions to titles more appropriate. Don't forget to "Update Mappings" down the bottom.# Next choose "Question Reorder" and in the "Current Order" column adjust the numbers until the new fields are grouped together as you want them. You can test and retest using the "Add a Record" button in the console.# Once they are together choose "Answer Values - Modify"# Choose the Section Group you want to add your new questions to# Down below each question has its own Id. Find the id of your new questions to add and put the numbers in the available empty text box called "Question". Don't forget to click "Update answers" for each question.# You can test each new addition is working correctly simply by clicking "Add a record" and checking.   = Data Usage =  If the form is a Quality Assurance type then the CDA field contains the contents of a grouped scoring result will be stored in the CDA field for the Section Group.  If the form is of any other types then the CDA field will not hold any data just like a Section Header.   = JavaScript Usage:notes =
The Section Group also creates three custom JavaScript functions on the page. If we create a group and it is in Campaign 1149 and the Section Group is field_0_19. The function names would be:
 
<source lang="javascript" collapse="true" first-line="1">
function fn_SectionGroup_strCDA_1149_field_0_19_Show(strObject){ //This will show all the questions in this group, regardless of shown or hiddenfunction fn_SectionGroup_strCDA_1149_field_0_19_Hide(strObject){ //This will hide all the questions in this group, regardless of shown or hiddenfunction fn_SectionGroup_Toggle_strCDA_1149_field_0_19(){ //This inspects the image of the group. Using the src of the image, if + (plus) shows, if - (minus) shown, hides.
</source>
Data Usage:
 
 
The CDA field will not hold any data just like a Section Header.
If the QA module is used for managing records, the contents of a grouped scoring result will be stored in the CDA field for the Section Group.[[Category:Module Specific:Form Management]]
7,528
edits