I was wondering if anyone would be able to help me figure out how to make my Q010 have the ability to chose 2 answers, I'm hoping to stay away from checkboxes but I am willing to take in any advice. If you need more information just let me know. Thanks! Here is my .was page - <Page Title="AFMBS Q10">
-
<Load>
-
<Execute>
-
campaignOnLoad()
-
</Execute>
-
</Load>
-
<Script src="q10.js"></Script>
-
-
<div id="questions">
-
</div>
-
-
<p id="response">
-
</p>
-
-
-
</Page>
Here is my .js page: - function pageOnLoad() //Set Page Specific Event Listeners and any functions you want called on load for this page.{
-
$S('CURRENTPAGE', 'q10')
-
questions().each(function(f) {
-
unDash(waParseInt(f.gsub(/Q/, '')))
-
create_html_for(f)
-
createScrollList({location: f+'Row', name: f, size: 1, values: getScale(f), program: programs(f), label: getText(f)})
-
eval(programs(f))
-
})
-
}
-
function questions() {
-
return getFields(10)
-
}
-
function text() {
-
return $H({
-
English: $H({
-
Q010: 'In the last 12 months, how often were the forms from Affinity easy to fill out? Would you say…'
-
})
-
})
-
}
-
function scales() {
-
return $H({
-
English: $H({
-
Q010: $H({'': '*READ LIST*', A: 'Always',
-
B: 'Usually', C: 'Sometimes', D: 'Never',
-
E: 'It was not necessary for you to fill out any forms from Affinity',
-
U: 'Unsure(DON\'T READ)'
-
})
-
})
-
})
-
}
-
-
function programs(question) {
-
var progs = 'mark_as_answered(\''+question+'\');'
-
progs += 'showCommentFor(\''+question.gsub(/[A-Z]$/, '')+'\', conditionsFor(\''+question.gsub(/[A-Z]$/, '')+'\'));'
-
return progs
-
}
-
function conditionsFor(question) {
-
var comments = $H({})
-
return comments.get(question) || ''
-
}
-
function onNextButton() {
-
if (validate()) {
-
$S('NEXT', 'q11')
-
nextpage()
-
}
-
}
-
function validate() {
-
if (questions_to_validate().any(function(q) {return $G(q) == ''})) {
-
alert('You must answer all the questions.')
-
return false
-
}
-
if (questions_to_validate().any(function(question) {
-
if (conditionsFor(question).split(',').include($G(question)) && $G(question.comment()) == '') {
-
alert('You must enter a comment for ' + question + '.')
-
return true } })) {
-
return false
-
}
-
return true
-
}
1 1268
What do you currently have instead of checkboxes?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Simon Finn |
last post by:
Hi
I have used ASP code to load data into two select boxes. The code below is
used to move the selected data back and forth between the boxes.
I am having problems retreving the data from the...
|
by: Stephen Witter |
last post by:
I have a multiple select list and I am trying to post to a page where
I have no option to use the request.form or vbscript to iterate
through the control. The page is a sql server reporting...
|
by: Raghuram Banda |
last post by:
Hi All,
Can any one please look into the following code and tell me where I went
wrong
<html>
<head>
<script language="JavaScript">
function transferItem(srcId, destId) {
var destObj =...
|
by: Max Weber |
last post by:
Try to run the code below in a page. You will notice than when you
switch the multiple attribute of the SELECT tag, only one option is
displayed as selected although multiple options have ben...
|
by: smash2004 |
last post by:
i have a select field with multiple enabled so user can select multiple
options...
is it possible to get option that was clicked last...i need this
because i need to check if this option was...
|
by: Adam Tilghman |
last post by:
Hi all,
I have found that IE doesn't seem to respect the <SELECT> "multiple"
attribute when set using DOM methods, although the attribute/property
seems to exist and is updated properly. Those...
|
by: imrantbd |
last post by:
I need array type name like "destList" must use for my destlist select box,not a single name.Or need a solution to capture multiple value of "destList" select box and send all selected value in php...
|
by: ozzii |
last post by:
Hi
I have a HTML form with a multiple select box. The multiple select box is populated from a database. A user can select multiple options form this select box and the infomrtaion is then stored...
|
by: Max |
last post by:
Is there any way to set a select-multiple type <select
multiple="multiple"with multiple selected options in scripting?
Any idea about this is appreciative.
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |