If check box then combo box
Hi there,
I have been searching for the answer for this question.
I am trying to write JavaScript for the following situation. If my check box is selected then the values of combo box 1, combo box 2, and combo box 3, will all read "N/A". My fields in each combo box is " " "yes" "no" and "N/A" If someone could help me out with this answer that would be greatly appreciated.
Thank you.
Hi
You need to use following Javascript code in Acrobat form to achieve your requirement.
if((this.getField("CheckBox1").isBoxChecked(0)))
this.getField("Dropdown1").value = "N/A";
this.getField("Dropdown2").value = "N/A";
this.getField("Dropdown3").value = "N/A";
if((!this.getField("CheckBox1").isBoxChecked(0)))
this.getField("Dropdown1").value = " ";
this.getField("Dropdown2").value = " ";
this.getField("Dropdown3").value = " ";
Please see attached PDF for reference.
Regards,
Anoop
Similar Messages
-
Can I attach a specific action to a choice in a list box or combo box?
I have a list of 26 sports that I would like people to choose from--in either a list box or combo box or any other tool that would work best. When they choose a particular sport, I would like another PDF to appear with the roster for that sport for this year, allowing them to check off certain players. Is this possible? Everything I see is in javascript or some other language that I don't know.
Thanks.
AnneI am piling on Gary's question, as I would like to know the answer as well. But first a little more color in case there is another way to do this....
When I get an email, I usually take some sort of action. I currently do not have a good way to note the actions I have taken against any particular email. This is why I want to know how to attach a note or a To Do to a particular email. I thought the To Do list would work, but when I type a To Do with a particular email sometimes it appears in the list and sometimes it doesn't.
So my goal is to have a way to create a history of action against a particular email.
Gary, I hope this is a valuable extension to your request as opposed to a diversion from your original intent. With any luck together we'll get a bit more traction for your request.
Thanks. -
Access 2010 - How to display data from a table into a text box upon combo box selection?
Hi
I have a a table with 5 columns: month, year, USD, SGD, BAHT.
I created a form with a combo box for selection of the month and year, and I would like to set adjacent text boxes to show USD, SGD, BAHT information. How can i go about doing that?
From the Q&A here, most of them uses the function similar to this "=[Combo0].[Column](1)" to show the data in the text box, but this would require the combo box to list a whole bunch of details if i were to add in more currency values to the
table. Is it possible to not show this information in the combo box, but still populate data in the textboxes base on a selection on only the "month" and "year" in the combo box.Hi,
According to your description, my understanding is that you want to show only the month/year in the combo box, we can choose the date, and it will display the value of USD/SGD/BAHT based on the month/year.
If it is, I recommend you try the steps:
Create a form based on your data source table>Add the combo box>combo box wizard>Find a record on my form based on the value I selected my combo box>Add mouth and year to selected fields
http://office.microsoft.com/en-us/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
If I misunderstand something, please let me know. We may upload some screenshots or a sample through OneDrive.
Regards,
George Zhao
TechNet Community Support -
Newb deserving assistance with Adobe Javascript (check boxes and combo boxes)
Hi, I'm a newb when it comes to javascript (using adobe acrobat pro 6.0).
I am working on a form that will allow me to autofill checkboxes based off of information chosen. Ideally, I would like to have a selection from a combo box autofill/auto checkmark check boxes. Alternatively, I would be willing to just have different selections presented with check boxes that when filled, would auto checkmark other check boxes (I know how to do this one, but I am not sure how to clear the check boxes if the initial one is unchecked).
I have the action button tied to the mouse up function. This just errors out.
var Citrix = this.getField("Citrix")
var Appro = this.getField("Appro")
var SAS = this.getField("SAS")
if (event.target.value=="Yes") {
Citrix.checkThisBox = true
Appro.checkThisBox = true
SAS.checkThisBox = true
else {
Citrix.checkThisBox = false
Appro.checkThisBox = false
SAS.checkThisBox = false
I have this that works, but I don't know how to clear the buttons when "Associate" is unchecked.
if(this.getField("Associate").isBoxChecked(0));
this.getField("Citrix").checkThisBox(0, true);
this.getField("Appro").checkThisBox(0, true);
this.getField("SAS").checkThisBox(0, true);
The other way I was working on it, was to use a combo box to autofill/checkmark check boxes. But this code doesn't work either.
function calculateTextField()
// get the value of the combo box
var comboValue = this.getField("Select").value;
// get the state of the checkbox
var isChecked = (this.getField("Citrix").value == "Yes");
var textFieldValue = "";
console.println(comboValue);
if (isChecked)
if (comboValue == 0)
textFieldValue = "";
if (comboValue == "Associate")
(this.getField("Citrix").value == "Yes");
else if (comboValue == "Specialist")
(this.getField("Citrix").value == "Yes");
else if (comboValue == "Team Leader")
(this.getField("Citrix").value == "No");
else
(this.getField("Citrix").value == "No");
else
textFieldValue = "";
this.getField("Select").value = textFieldValue;
Can anyone please assist me with this?
Thanks,
ChrisHi Gene,
Thank you for the response. Are you saying that my initial formula should look more like this; ?
var Citrix = this.getField("Citrix")
var Appro = this.getField("Appro")
var SAS = this.getField("SAS")
if (event.target.value=="Yes") {
Citrix.checkThisBox = true
Appro.checkThisBox = true
SAS.checkThisBox = true
else {
if (event.target.value=="Off")
Citrix.checkThisBox = true
Appro.checkThisBox = true
SAS.checkThisBox = true
Thanks,
Chris -
I seem to get an "Exception caught while loading
http/www.apple.com: undefined" when selecting a URL in a SPRY combo
box feed from an XML
the xml :
<?xml version="1.0" encoding="iso-8859-1"?>
<gateways>
<gateway file="http/www.apple.com" base="Toronto" />
<gateway file="http/www.apple.com" base="Montreal" />
<gateway file="http/www.apple.com" base="Vancouver" />
</gateways>
the page :
<script type="text/javascript"
src="includes/xpath.js"></script> <script
type="text/javascript"
src="includes/SpryData.js"></script>
</script>
<script type="text/javascript">
var dsProducts = new Spry.Data.XMLDataSet("xml/gateway.xml",
"gateways/gateway", { useCache: false})
var dsProductFeatures = new
Spry.Data.XMLDataSet("{dsProducts::@file}", "gateway")
</script>
<div id="Wrap">
<div id="SwfZone">
FlashZone
</div>
<div id="DownLeft" spry:region="dsProducts">
<select spry:repeatchildren="dsProducts" id="SelectMenu"
onchange="dsProducts.setCurrentRow(this.selectedIndex);" } catch
(e) {}">
<option spry:if="{ds_RowNumber} == 0"
value="dsProducts.setURL('{@file}');" selected="selected">
{@base}
</option>
<option spry:if="{ds_RowNumber} != 0"
value="dsProducts.setURL('{@file}');">
{@base}
</option>
</select>
</div>
<div id="DownRight">
test
</div>
<div id="HlpZone">
test
</div>
</div>
Isn't that a funny bug?I suspected that was the goal, but your code seems a lot more
complex than that, like you wanted to load another data set
onChange.
See if this works for you:
<script src="SpryAssets/includes/xpath.js"
type="text/javascript"></script>
<script src="SpryAssets/includes/SpryData.js"
type="text/javascript"></script>
<script type="text/JavaScript">
<!--
var dsURLs = new Spry.Data.XMLDataSet("gateways.xml",
"gateways/gateway");
//-->
</script>
<script language="JavaScript">
function openURL( form ) {
var newIndex = form.urls.selectedIndex;
if ( newIndex == 0 ) {
alert( "Please select a location!" );
} else {
newurl = form.urls.options[newIndex].value;
window.location=( newurl );
</script>
</head>
<body>
<div spry:region="dsURLs">
<form name="form"><select name="urls" id="urls"
onChange="openURL(this.form)">
<option selected="selected">Select a
Location</option>
<option value="{@file}" spry:repeat="dsURLs"
>{@base}</option>
</select></form>
</div> -
Poplating a List Box or Combo Box
Hello,
I need to add a list box onto the AR invoice screen that displays all employees. I need to do this using the SDK, 2004A and VB.Net. Has anyone done this, please forward me the source.
Thanks JohnOn Form Load call the function :
Private Sub CreateItemsOnForm(ByVal strFormUID As String)
Dim mobjItem As SAPbouiCOM.Item
Dim mobjCombo As SAPbouiCOM.ComboBox
oForm= objSBOApplication.Forms.Item(strFormUID)
Try
mobjItem = oForm.Items.Add("XYZ",SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
mobjItem.Width =
mobjItem.Left =
mobjItem.Height =
mobjItem.Top =
mobjItem.FromPane = 0
mobjItem.ToPane = 0
mobjItem.Enabled = True
mobjItem.DisplayDesc = True
mobjCombo = mobjItem.Specific
Catch ex As Exception
Throw ex
End Try
End Sub
AND FOR FILLING COMBO
Dim mobjForm As SAPbouiCOM.Form
Dim mobjCombo As SAPbouiCOM.ComboBox
Dim mobjRecordset As SAPbobsCOM.Recordset
Dim intCount As Integer
Try
mobjForm = objSBOApplication.Forms.Item(strFormuid)
mobjCombo = mobjForm.Items.Item("XYZ").Specific
mobjRecordset = gobjCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
mobjRecordset.DoQuery("SELECT EMPCODE,EMPNAME FROM TABLE")
Do While mobjCombo.ValidValues.Count > 0
mobjCombo.ValidValues.Remove(0, SAPbouiCOM.BoSearchKey.psk_Index)
Loop
For intCount = 0 To mobjRecordset.RecordCount - 1
mobjCombo.ValidValues.Add(mobjRecordset.Fields.Item("EMPCODE").Value, mobjRecordset.Fields.Item("EMPNAME").Value)
mobjRecordset.MoveNext()
Next
Catch ex As Exception
Throw ex
End Try -
I am not sure if either of these are what I need to use.
I will show an example:
I have four categories that I would like to add up to 100%
Attitude What type of form field can I use that if I put 25% here
Worth-ethic and 25 %
Timeliness and 50%
Promptness and 0%
TOTAL This would automatically total 100%
Is this possible?
Thanks.It's not really clear what you want to do. If you describe in more detail what you're trying to accomplish, it might help.
-
How can I, by God's shake, check if a combo box has any value selected?
I tried with If XXXX.Selected.Value = "" Then... but it doesn't work.
Thankscheck for the .selected is nothing (it is an object)
If Not (.Selected Is Nothing) Then
Indika -
Combo box and Check box..help with code please?
Here is my problem...i have a list of check boxes and according to which one is checked, i need combo boxes to populate different choices.
as an easy example im only using 2 check boxes and two combo boxes.
the check boxes are named Choice 1or2 with export values of 1 and 2
the Combo Boxes are named List A and List B..
both containing options that say you checked box 1 and you checked box 2
any help would be greatly appreciatedImplode wrote:
"Help with code please."
In the future, please use a meaningful subject. Given that you're posting here, it's kind of a given that you're looking for help with the code. The whole point of the subject is to give people a high level idea of what KIND of help with what KIND of code you need, so they can decide if they're interested and qualified to help.
Exception in thread "main" java.lang.NumberFormatException: For input string: "fgg"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at assignment1.Game.Start(Game.java:120)
at assignment1.RunGame.main(RunGame.java:18)This error message is telling you exactly what's wrong. At line 120 of Game.java, in the Start method (which should start with lowercase "s" to follow conventions, by the way), you're calling Integer.parseInt, but "fgg" is not a valid int. -
Push Button , Label and combo box
Hi Experts,
Currently facing a problem , please guide.
I have two push buttons say A and B and one combo box.
I am using Combo box with source data as filtered row options.
What I want to accomplish is when push button A is clicked then my combo box should have different souce of data say sheet 1 in excel and when Push button B is clicked then the same combo box should have source data from sheet 2 from the same excel.
I mean dynamic selection of source data and then destination data by using combo boxed.
is it possible ?
Thanks in advance.
Thanks & Regards,
AnjnaHi,
Use 2 combo boxs CB1 n CB 2.
CB1 : source form sheet1
CB2:Source from sheet 2
when push button A is selected set dynamic visibility such that u get combo box 1
when push button B is selected set dynamic visibility such that u get combo box 2.
Case 2:
Insted of using 2 push buttons you can use a radio butoon and select the lables A or B so that these two combo box components dnt appear at once
Take a radio button component and map lables as A and B
under behaviour tab: >Insert selected item:>mapp it with a blank cell say Sheet3!$G$4
if radio button selection is A then set dynamic visibility such that u get combo box 1
if radio button selection is b then set dynamic visibility such that u get combo box 2
formula cells:
take a blak cell say Sheet3!$H$7 and write formula =IF(Sheet3!$G$4="A","",first label of combo box 2)
take a blak cell say Sheet3!$H$8 and write formula =IF(Sheet3!$G$4="B","",first label of combo box 1)
Combo box 1 :Behaviour tab-->Selected item :Sheet3!$H$7
Combo box 1 :Behaviour tab-->Selected item :Sheet3!$H$8
check if this suits ur req ...
@Sri
Edited by: Sri kamesh on Jun 21, 2011 11:00 AM -
I am working in access 2013 to update a database first created in Access 2003. It has been saved as an accdb but I have the same problem in earlier versions.
I have a Tab Control subform in my MainDataEntry form which has 5 different tabs. Each Tab has its own set of text boxes and combo boxes for data entry. At the top of the MainDataEntry form there is a Text box [Text393], which has a drop down with
the 5 TAB names, [Mobile Device],[Computer],[Loose Media],[Network] and [Original Device]. When I select one of these values in the Text box, I would like to automatically set focus on the first Textbox or ComboBox inside the corresponding TAB.
I have tried to do this using the MacroBuilder inside the "After Update" Property for the Text or Combo box that is on the MainDataEntry Form using "If" and "Else If" statements for the "GoToControl" action, however
I seem to be able to only get one Tab to work. I have tried several different variations of this, putting the If statement first and the action argument second...putting all arguments inside a group, or not grouped....nothing seems to work. What am I
doing wrong?
EXAMPLE:
If [Text393]=[Mobile Device] Then
GoToControl
Control Name Combo471
Else If [Text393]=[Computer] Then
GoToControl
Control Name Bios_Date
Else If [Text393]=[Loose Media] Then
GoToControl
Control Name Combo659
Else If [Text393]=[Network] Then
GoToControl
Control Name User Name
Else If [Text393]=[Original Device] Then
GoToControl
Control Name Combo814
End IfIn the Macro Builder's AfterUpdate event for [Text393]:
GoTo Control
Control Name =Forms!MainDataEntry.Controls(Text393.Value).Name
To ensure that the first control on each tab receives the focus, set that control's Tab Index property to zero (0). -
Combo Box Selection to Change Selection in another Combo Box
I'm pretty familiar with excel and VBA, but when it comes to Adobe Acrobat, I am lost with Javascript.
I am creating a form.
My first field is a combo box named: Rent.booth
My second field is also a combo box named: County.booth
I need to know where and how I would implement a java command that states that if Rent.booth = Rent, then County.booth automatically = No.
If No is selected for Rent.booth, then allow the user to choose any of the 3 values.
Combo Box Options for Rent.booth:
Select One
Rent
No
Combo Box Options for County.booth:
Select One
Yes
No
Any leads would be appreciated. So far I've only seen the Combo Box to Text box solutions, nothing for Combo box to Combo Box.You'll get the best help with Javascript in the Acrobat Scripting forum.
-
Making combo box write variables
Hi
I am a dynamic site newbie, but have been making simple animations with Flash for some years.
I have got a friend to give me a leg up to create a flash page full of input text boxes that write to a text file via PHP and are then dispayed in dynamic text boxes. ( http://www.thepastafactory.co.uk/forsale.html ) I want to replace some of the imput text boxes with combo boxes. eg if the combo box has the options of say "rigid" or "trailer" it would write which ever was selected in the text file so this would be displayed in the dynamic text box for the end user to see. It seems very simple but I have looked all over the options for combo boxes and can see no mention of variables.
Can anyone explain to me in simple terms how I can achieve this.
Many thanks
RalphAs a simple example for yourself, open a new file and add a combo box and a dynamic textfield to the stage. Assign them instance names of my_cb and cbTextField, respectively. Then add an actions layer and place the following code in it...
// Add Items to List.
my_cb.addItem({data:1, label:"First Item"});
my_cb.addItem({data:2, label:"Second Item"});
my_cb.addItem({data:3, label:"Third Item"});
my_cb.addItem({data:4, label:"Fourth Item"});
var listenerObject:Object = new Object();
listenerObject.change = function(eventObject:Object) {
trace(my_cb.selectedItem.data);
cbTextField.text = my_cb.selectedItem.label;
my_cb.addEventListener("change", listenerObject); -
hi there...
can u tell me how to changed the function MOUSE CLICKED (use check box ) to combo box....Hi Mira,
I am not sure what you intend by saying Function mouseClicked call to be changed to combobox.
If you can provide more information, it will be very useful in replying.
Regards,
Chandra -
How to list the Enumeration values of a WebService in a Combo Box in VC
Hi,
I am trying a typical example of currency converter using Visual Composer in NWCE 7.1 EHP1.
I am using the webservice http://www.webservicex.net/CurrencyConvertor.asmx?WSDL for this example.
Is there any way to list all the "Currency" enumerator values in a Combo Box? Currently I am using a simple text box where one has to type in the 3 letter currency symbol manually. I would like to replace this text box with Combo box.
Thanking in advance.
Regards,
Ram.Hi
This can not be done Vc only "sees" the returned data in the webservice, it can not access the meta data from the webservice.
Jarrod
Maybe you are looking for
-
Problem using Weblogic 6 and Weblogic 8.1 thin clients from same applicatio
We are developing a application where we require to communicate with 2 different ?Webogic Servers? running different versions. First server is ?Weblogic 6.1 SP7? and the other is ?Weblogic 8.1?. We use Weblogic thin client jars to connect to these se
-
I installed ADE and when I try to download ebook it tries to open with Adobe reader and does not give option to open with ADE
-
G3 (blue one) OSX server 10.2
Hello! I'm very new to this, (macs at home and posting things that is!!) but hope somebody can help. You'll have to bear with me! I've got a G3 (blue & white one) with OSx server 10.2 (maybe 10.2.8, can't check at the moment) loaded on it. Firstly, c
-
Why won't iTunes stop downloading the same cd over and over again?
I recently downloaded a cd from the itunes store, the download is complete and the songs are on my iPod. Now everytime I pull up iTunes I have 13 new downloads but the songs are already downloaded. I dont want to purchase any thing else untill I have
-
I have a hotmail account sync. With my Mail on the Macbook and iPad, everytime I open my mac all emails are transfered from the iPad to the Macbook. Is there a way to keep a copy of the emails on the iPad? Or access them after transfered?