2 sets of radio buttons in a form-complications
Hi all
I've been looking around for code to assist me in building a form. I have developed the form and just a few problems that I can't understand.
In a question on the form, the user can select from a set of radio buttons and select one of the five options. Then I have a second set of option buttons that the user can choose only one option. My problem is that I don't want the user to be able to select from the second set of option buttons if they chose a certain option in the first set. An example to clarify my problem:
You have completed the training:
Yes
Half
None
So if the user selected Yes in the first set of option buttons, I want the second set of option buttons to now be selectable:
The training was:
Up-beat and nice
Snoozer
I use are very different than the latter, but it's just a simple sketch. So, how can I do the second set of radio buttons not selectable until the user selects a specific option button in the first set of option buttons.
Thanks, I really appreciate the help!
If you have an exclusion group called "completion" with three elements 'Yes' radio button 'Half' and 'None' and a second radio button exclusion group called "completion", go to the value of 'feedback' tab and set the type to "readOnly".
Add the following script to the "end"... change event
Form1.Page1.Subform1.completion::change - (JavaScript, client)
If (this.rawValue == 'Yes') {}
Form1.Page1.Subform1.feedback.access = "";
}
else {}
Form1.Page1.Subform1.feedback.access = "readOnly";
Form1.Page1.Subform1.feedback.RawValue = "";
}
If the user selects "Yes", the "feedback" group is available for selection. If the user does not select 'Yes', 'feedback' is reset and readOnly.
Steve
Tags: Adobe LiveCycle
Similar Questions
-
I'm unable to deselect specific fields when you set the Reset button in a form. I can only "select all" or "deselect all". Someone at - it happen?
Yes, this is a common problem. Use the SPACEBAR to toggle individual mailboxes.
-
Is it possible to place radio buttons in a form (Muse CC)
Is it possible to place radio buttons in a form?
You can place the buttons with HTML in the Muse,
but he is unable to get in the form
So, once you submit the form, you don't get to see the choice of option buttons.
Is there a way to fix this?
Thanx
T
An update was released today which includes radio and checkbox button groups.
Please update to the latest version.
Thank you
Sanjit
-
How can I add radio buttons to my form?
How can I add radio buttons to my form?
An update was released today which includes radio and checkbox button groups.
Please update to the latest version.
Thank you
Sanjit
-
Using a drop-down menu to set a radio button
I searched and seeking in vain, tried a lot of different things can I can't seem to find an answer already or tripping on a similar code to help.
I have a drop-down list, then when you select different values defined different fields of the form. This part works very well this kind of things in the validate custom:
If (event.value == 'Thing1') {}
this.getField("DESC01").value = "Words that fill a description box.";
this.getField("DESC02").value = "words more that fill another description box."
this.getField("F_SKILL1").value = "1";
this.getField("RB_SKILL1").isBoxChecked (1);
this.getField("F_SKILL2").value = "1";
this.getField("F_SKILL3").value = "1";
} Else if (event.value == 'Thing2') {}
this.getField("DESC01").value = "Different words that fill a description box.";
this.getField("DESC02").value = 'words of more different that fill out another box of description';
this.getField("F_SKILL4").value = "1";
this.getField("RB_SKILL1").isBoxChecked (0);
this.getField("F_SKILL5").value = "1";
this.getField("F_SKILL6").value = "1";
}
etc, etc. I have a few ifs else different, but they all follow this kind of format. There are also radio button next to the skills on the sheet to visually display this skill is known. I would like to check this option. My isBoxChecked does not work, and I hope it is because it doesn't work like that. I have a lot of radio buttons on the form, but they all 1 choices in them are no groups. Again, I use it as a Visual representation that SKILLX is known. The area I dropped the box on the sheet is a very small circle, that's why I'm trying to use a radio button, as it is visually similar.
If there is a better solution to what I'm trying to do, I'm happy to try it, or if someone can tell me what I am doing wrong that would be great
Thank you!
The value of the box is for her to control or to "Off" to uncheck export value
this.getField("RB_SKILL1").value = 'yes '.
this.getField("RB_SKILL1").value = 'Off '.
-
Why 200 radio buttons in a form cause 8 second period of rendering
We have an on-line questionnaire containing 36 questions, each with 6 radio buttons (216 total) in a single form. Although the page to render quickly, there is then a delay in Firefox up to 8 seconds before it will record an option by clicking button. This problem does not occur in Chrome or Safari, and there are slight delay (second) in Internet Explorer. The period shall be reduced pro rata by reducing the number of option buttons. The period may also be reduced to about 4 or 5 seconds by removing all elements of the page outside the boxes option and the form.
Unfortunately, you will need to get with Norton to try to determine why.
We could try to open a bug report in Bugzilla... Use the Plugins with Norton AV product component-> https://bugzilla.mozilla.org/enter_bug.cgi?product=Plugins
-
How to add radio buttons to the form
Hello
I want to add option buttons to the form.
I wrote the following code:
Rbg RadioButtonGroup = new RadioButtonGroup();
RadioButtonField r1 = new RadioButtonField ("first option button");
RadioButtonField r2 = new RadioButtonField ("second radio button");
RadioButtonField r3 = new RadioButtonField ("third option button");
RBG. Add (R1);
RBG. Add (R2);
RBG. Add (R3);
mainScreen. Add (RBG);
When I run this, I get uncaughException.
I am doing wrong?
can someone help me please.
Thank you
Maury.
On the screen, we can add that the fields. RadiButton group will hold all Radiobutton Fields.
RadioButtonGroup rbg = new RadioButtonGroup(); RadioButtonField r1 = new RadioButtonField("first radio button"); RadioButtonField r2 = new RadioButtonField("second radio button"); RadioButtonField r3 = new RadioButtonField("third radio button"); rbg.add(r1); rbg.add(r2); rbg.add(r3); add(r1); add(r2); add(r3);
-
Several sets of radio buttons no longer works
Hi all:
My first post so I apologize in advance if I don't do it correctly.
I have a few web forms with multiple groups of radio buttons on them that are suddenly errorring on since we moved to CF 7. I started tinkering with a single shape that I posted the code and kept cutting down to simpler code which begins to produce the error. If I use only 1 group of radio buttons, everything works fine, but the minute I add the second, all up a message "syntax error (lack operator) in a query expression. Each radio button group has its own group name and a checked value. This is the very simple code and very frustrating, why it suddenly stopped working so any help is welcome.
Here is the code for the form:
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
"< html xmlns =" http://www.w3.org/1999/xhtml "> "
< head >
< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
< title > Untitled Document < /title >
< / head >
< body background = "white" marginheight = "0" marginWidth = "0" >
< action = "testSub.cfm cfform" method = "POST" > "
< table width = "95%" border = "0" cellpadding = "0" >
< b >
< td width = "24%" > < img src = "survey.jpg" border = '0' > < table > "
< td width = "76%" > < p > This is our desire to ensure that this MID meets the needs of
our customers. XXXXXXX
< p > < / p >
<p>*****************************************************<br>
< /p > < table >
< /tr >
< b >
< td colspan = "2" > < p > please answer questions 1-4 with a rating of 1-5, 1 being POOR and 5 being EXCELLENT. < /p >
< p > you are not required to provide this information. < /p >
< p > < police = "Arial, Helvetica, sans-serif" size = "2" > My Name (first & amp;
The last): < / police > < police = "Arial, Helvetica, sans-serif" size = "2" >
< cfinput type = "Text" name = "poc" required = "" size = "50" maxlength = "50" >
< br >
< b > 1. Has been
your polite and courteous service technician? < /b > < br >
< cfinput type = "radio" name = "polite" value = "1" >
1
< cfinput type = "radio" name = "polite" value is "2" >
2
< cfinput type is "radio" name = value "poli" is checked "3" >
3
< cfinput type is "radio" name = "polite" value is "4" >
4
< cfinput type = "radio" name = "polite" value = "5" >
5 < /p >
< p > < br >
< br >
2.
your polite and courteous service technician? < /b > < br >
< cfinput type = "radio" name = "knows" value = "1" >
1
< cfinput type = "radio" name = "knows" value = "2" >
2
< cfinput type = "radio" name = 'knows' value '3' = checked >
3
< cfinput type = "radio" name = "knows" value = "4" >
4
< cfinput type = "radio" name = "knows" value = "5" >
5 < /p >
< input type = "submit" name = "btnSubmit" value = "Submit my comments!" >
< input type = "reset" name = "reset" value = "reset form" > < br >
< br >
< / cfform >
< b >
< td > < table >
< td > < table >
< /tr >
< /table >
< / body >
< / html >
****************************************************************************************** **********************************
The ACTION code
< html >
< head >
< title > test < /title >
< / head >
< body >
< IsDefined ("FORM.btnSubmit") CFIF >
< CFQUERY NAME = "Add" datasource = "newMID" >
(Survey) INSERT INTO
POC,
polished,
not know
)
VALUES)
"#poc, #
"#polite #
"#know, #
)
< / CFQUERY >
< / CFIF >
< cfoutput >
Thank you. Your COMPUTER has been forwarded to our mailbox NHCPR IT.
< / cfoutput >
< intrusion via cfmail to = "[email protected]."
FROM = "[email protected]".
OBJECT = "investigation form" >
Polish: #polite #.
Find out: #know #.
POC (opt.): #poc #.
< / intrusion via cfmail >
< / body >
< / html >
I think that TIME is a word reserved in most of the db - do not use it as
table/column name, or use your specific db escape reserved words
table/column names (i.e. in MS Access surround with [] like [time]HTH
---
Azadi Saryev
SABAI - Dee.com
http://www.SABAI-Dee.com -
Radio button selection through form particular subform
Hi - I am eager to the user to be able to choose an option button, and if this option is activated, the user is moved automatically to a particular subform further away to the bottom of the form. Is this possible?
Any information would be really appreciated.
Hello
to move to an another subform, you can use the scroll method.
Here is an example that shows how to.
-
Report with date setting does not button on a form
Hi all
I m getting a problem which, although I'm trying to run a report from a form button I get the following error.
Form-41214: cannot run report warning and get browser error.
REP-52251: cannot get a job ID 301 output you asked Sam Feb 06 11:12:36 2010 BDT. < P > REP-51026: no exit for post 301
But if I don't put any date in the date field value, then the report run without any value.
Please help me if anyone has passed through the problem and resolved.
ArifHello
try something like that.
SET_REPORT_OBJECT_PROPERTY(rep, REPORT_OTHER , 'P_parameter="' || TO_CHAR(:BLOCK.START_DATE, 'dd/mm/yyyy') || '" P_parameter="'|| TO_CHAR(:BLOCK.END_DATE, 'dd/mm/yyyy') || '"');
Sarah
-
I built a form and it has 6 sets (each set is 2 button - as Yes or no) radio button.
I have tested the page, checked a box radio - everything was fine, but then why I tried to tick another box of radio, the last obtained box unchecked.
And I said that I ment to build 6 sets of radio buttons and not 1 set of 12 keys.
Here is the code:
< form id = "form1" name = "form1" method = "post" action = "" >
< fieldset >
< legend > CBA < / legend >
< label > ABC
< select name = "select1" id = "select1" >
< option value = "a" > AA < / option >
< option value = "b" > BB < / option >
< option value = 'c' > CC < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > EE < / option >
< option value = "f" > FF < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / >
< br / >
< / label >
< label > ABC
< select name = "select2" id = "select2" >
< option value = "a" > aa < / option >
< option value = "b" > bb < / option >
< option value = 'c' > cc < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > ee < / option >
< option value = "f" > ff < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / > < / Label >
< br / >
< label > ABC
< select name = "select3" id = "select3" >
< option value = "a" > aa < / option >
< option value = "b" > bb < / option >
< option value = 'c' > cc < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > ee < / option >
< option value = "f" > ff < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / > < / Label >
< br / >
< label > ABC
< select name = "select4" id = "select4" >
< option value = "a" > aa < / option >
< option value = "b" > bb < / option >
< option value = 'c' > cc < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > ee < / option >
< option value = "f" > ff < / option >
< option value = 'g' > gg < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / > < / Label >
< br / >
< label > ABC
< select name = "choisies5" id = "choisies5" >
< option value = "a" > aa < / option >
< option value = "b" > bb < / option >
< option value = 'c' > cc < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > ee < / option >
< option value = "f" > ff < / option >
< option value = 'g' > gg < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / > < / Label >
< br / >
< label > ABC
< select name = "select6" id = "select6" >
< option value = "a" > aa < / option >
< option value = "b" > bb < / option >
< option value = 'c' > cc < / option >
< option value = "d" > JJ < / option >
< option value = 'e' > ee < / option >
< option value = "f" > ff < / option >
< option value = 'g' > gg < / option >
< / select >
1
< input type = "radio" name = "RadioGroup1" value = "1" / >
2
< input type = "radio" name = "RadioGroup1" value = "2" / > < / Label >
< / fieldset >
< fieldset >
CDE < legend > < / legend >
< p >
< label > a
< input name = "name" type = "text" id = "name" / >
< / label >
< br / >
b < label >
< input name = "password" type = "password" id = "password" maxlength = "6" / >
< / label >
< br / >
< /p > < / fieldset >
< p > < / p >
< fieldset >
SR < legend > < / legend >
< p >
s < label >
< input type = "submit" name = "Submit" value = "Submit" / >
< / label >
r < label >
< input type = "reset" name = "Submit2" value = "Reset" / >
< / label >
< /p >
< / fieldset >
< / make >
AirParker wrote:
> I have tested the page, checked a box radio - everything was fine, but
> so why I tried to tick another box of radio, the last box got
> uncontrolled.
1 >
>
2 >
>>
2 >
>>
2 >
>All your radio buttons are in the same group - RadioGroup1. Only radio
button in a group can be selected.Solution: Name of the first pair "RadioGroup1", then the second pair
'RadioGroup2' etc, and everything will be fine.HTH,
Pete.
--
Peter Connolly
http://www.acutecomputing.co.UK
Derby
UK
Skype ID: acutecomputing -
What to put in the xsd schema for the form of the ADF radio buttons?
Hello, we create a form generated from the data of a HT ADF auto which is a type defined in a schema .xsd. Which schema component Let's in the .xsd schema correspond to buttons option in the form of the ADF? For example, in our .xsd we just
<? XML version = "1.0" encoding = "UTF-8"? >
" < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "xmlns:wf =" " http://www.example.org "
" targetNamespace = ' http://www.example.org "elementFormDefault ="qualified"> "
< xsd: complexType name = "FormDataType" >
< xsd: SEQUENCE >
< xsd: element name = "FirstName" type = "xsd: String" / >
< xsd: element name = "Name" type = "xsd: String" / >
< xsd: element name = "Department" type = "xsd: String" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: Schema >
What would be the element / type etc be for radio buttons?
Hi Tali,
It depends on what you want to do with radio buttons, but it would be better to be a part of string in most cases.
This could be better handled on the ADF OTN forum, but I'll take a shot at it. If you have many items to choose from, you can use the string "Department", you already have in your XSD. When displayed on the form, include various departments with radio buttons next to each other (for example,"manufacturing", "Marketing", "Sales").
Because this is the BPM forum, I guess your XSD is used as data for a human task which in turn used to create a form of the ADF. If this is the case, you can use your "Department" in your XSD string element that has already been placed on your form as a text input field. The reason is the link that you need to update the element of the human task service is automatically created in this way. Select this field to text, and then in the properties panel, copy the text that is in the 'value' of the field (you stick it in the Value property of the Radio group you will add in the next step).
There are two ways to get the radio buttons on the form. You might drag the "Radio group" widget on the form-> click on radio to 'Create a list (select an item)' button-> click the Add icon to add the choices you want to appear on the form (for example,' manufacturing ', 'Marketing', 'Sale'). Once this was added, paste property value text you copied in the previous step into the field of "Value" property of the new Radio group.
If you select the radio button of the new group source, it should look like this if you wanted two choices for your radio buttons:
After this has been added, delete the existing text entry field that was created when the form was generated automatically from the human task.
Hope this helps,
Dan
-
completely deselect radio buttons after that one has been chosen.
I know how to set up radio buttons that are not selected when a user starts. But I'm getting a request from my client on the following: If someone clicks on a radio button, and then selecting choose another course off the first. But what happens if someone clicks on a radio button and then doesn't want any selected button. How do we delete this without erasing the entire form? To redeclare the problem... I want someone who has clicked on a radio button by mistake to UN-click on it without selecting another corresponding button. Is this possible?
Thank you
Stuart
Use the boxes instead of radio buttons if you want this feature.
Give their namesake but export different values and they will mutually as radio-buttons (that is to say, when you click an item in the group it deselects the others), but you'll also be able to deselect the selected item.
-
Why are my radio buttons do not rename pages spawned from a hidden template?
Hello world
I'm new to PDF forms and have never tried to use JavaScript. However, I have learned many things and I have followed several threads and almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to find my problem. Your help is greatly appreciated.
SYSTEM REQUIREMENTS: Adobe Acrobat X Pro Mac OS 10.8.5
WHAT I WANT: a form of several pages (100 pages) of grading of student assignments. Each page must have the same fields, but as each page belongs to a new student, he must have different values in the fields on different pages. Each page contains 4 questions to score, with possibilities of 4 points for each question (0, 1, 2, 3 points), and then only to 01:20 should be selected by the question.
WHAT I HAVE BECAUSE, by following the instructions in this thread (
):(1) created a form with a field for the name of the student and 4 sets of radio buttons (labeled Questions 1 to 4, with choice of score 0-3).
(2) placed a button at the bottom of the page that will generate a new page and rename fields.
(3) set this page as a template.
4) has created a page.
(5) made the model "hidden."
THE PROBLEM: Steps 1-4 above work perfectly - as long as the model (called 'Form') is visible, when I click the button, a new page generates and student name field renames fields to Page 2 for "P2. "Form.Student ID # ' and the boxes option and rename it 'P2 '. Form.Question 1 "etc. Whenever I press the button, it renames everything properly.
However, if I hide the model, then when I click on the button on page 1, Page 2 fields are renamed "P1. Form.StudentID # 1. "AND THE RADIO BUTTONS DO NOT RENAME. They get the name "P1. Form.Question 1 "etc. So the student name field did rename in a way that allows me to enter a new name on every page, but is not actually reflecting that I am on page 2, and regarding radio buttons, at that time, I can't enter the different scores on different pages because they are all part of the same group radio button.
If I use checkboxes, they rename similarly to the student ID field, but I don't want to use checkboxes because I want to back a possible score value for each question to have the data in the table. I don't want to not let the model visible because when I distribute this screen allows other workbooks, they can enter values in the page template without realizing it, and then when the forms of spawning, they hurt the data already entered.
Here is the script that I put as the mouse to the top button script:
Specify the name of the model
var template_name = "form";Get a reference to the model
var t = getTemplate (template_name);Add a new page based on the template
If (t! = null) {}t.Spawn({)
nPage: numPages, / / add the new page at the end of the document
bOverlay: false, / / create a new page, not an overlay
bRename: true / / rename fields
});} else {}
App.Alert ("the named model-'" + template_name + "does not exist in this document.", 1);
}Thanks for your help
It's basically the script to a page of spawning but changed the page number 0 and adds the code to hide the model >
Specify the name of the model
var template_name = "form";
Get a reference to the model
var t = getTemplate (template_name);
Add a new page based on the template
If (t! = null) {}
t.Spawn({)
nPage: 0, / / add the new page at the beginning of the document
bOverlay: false, / / create a new page, not an overlay
bRename: true / / rename fields
});
t.Hidden = true; hide the model
} else {}
App.Alert ("the named model-'" + template_name + "does not exist in this document.', 1, 0");
}
If we do not hide the model and the model field are met, then the model replicates the field with the value of the field.
-
Problem of having a group of radio button deselect when I choose a different button
I'm hoping to get help on having two radio button deselect when I select another radio button. It's a bit complicated to explain, so I made an example below. Pay now and pay later are radio buttons with the same group name (choice). Balance credit card and by check are another set of radio buttons with the same group name (Options).
What I need to happen is if you click on pay later after accidentally clicking the pay now and pay by credit card options, The Pay Now désélectionnera but pay by credit card or pay by check désélectionnera not.
I think I need to use a java code with possibly affecting values to some buttons, but I have no idea how to proceed. Please see the example below if what I typed makes no sense. Any help would be greatly appreciated.
Hi Jeffstolz
A way to accomplish what you want is to assign an action to the button pay later which is reset a form.
Then you choose Reset only remuneration by group of credit button.
Try it.
Ron has
Maybe you are looking for
-
After the installation of El Capitan, this pop-up continues. It cannot be permanently closed. 'More info' or 'ok' is clicked, it continues to occur. And, it blocks the ability to type on the keyboard. How to go far, far away?
-
Satellite A300 with Chinese words
I have satellite A300-234 and a problem: when I surfed on canvases, some ads on certain websites (English or another except Chinese web), notes on system errors occur by the Chinese.Why is this?
-
I lost the CD start to my officejet 5510 all-in-one printer
I fell off my PC under Windows XP and my old printer hp officejet 5510 all in one laptop no longer works. I can't find my CD to reinstall boot. Is that why I get an another boot CD or a way to get this printer working again? Thank you for your help,
-
Where to find information on the album in Media Player, I get the following message appears when I click on the button "Finish": An error has occurred on this page of script Online: 303 Tank: 25 Error: the value of the property 'btnfinish_onclick' is
-
I am running windows 7.1 and get a lot of "program does not ' on various web pages, MSN, Amazon.com Foxnews, etc.. I also get it on a game that I played for a year with no prior case, it isn't just the Explorer. I run a full scan of security essent