How can I make a dropdown box populate with values from other fields?
I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
Game 1 winner --
(game 9) |--- Game 9 winner
Game 2 winner --
Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.
I would look at using the setItems Acrobat JavaScript method.
Have you considered using a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"
Similar Messages
-
How can I make the »Text Box« blend with the background?
I have a problem that my document is almost finished, but still I cannot solve one basic problem. My “Text box” fields are still selectable (I get the blue select/resize buttons around the text) when I click on them when reviewing my document in the reader. In this “Text box” fields there is text that is not meant to be changed by the end user. It should just be shown (blend with the background) and not selectable. This resize buttons around the text box don’t work and don’t allow the end user to change the size but their presence alone drives me crazy.
Should I use the “Stamp” tool in this case or is there a setting (with the text box tool) that I’m missing?It seems that I found the solution. Is the only way to avoid the before mentioned edit box that I use the TouchUp Text tool to add text?
-
How can I make the combo box turn to the value of black.
When the show button is pressed (and not before), a filled black square should be
displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
the displayed shape and the altering should take effect immediately.When the show button is pressed,
the image should immediately revert to the black square, the combo box should show the value that
correspond to the black.
Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
how can I make the combo box turn to the value of black.
Any help or hint?Thanks a lot!
coding 1.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class test extends JFrame {
private JPanel buttonPanel;
private DrawPanel myPanel;
private JButton showButton;
private JComboBox colorComboBox;
private boolean isShow;
private int shape;
private boolean isFill=true;
private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
"green", "lightgray", "magenta", "orange",
"pink", "red", "white", "yellow"}; // color names list in ComboBox
private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
Color.gray, Color.green, Color.lightGray, Color.magenta,
Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
public test() {
super("Draw Shapes");
// creat custom drawing panel
myPanel = new DrawPanel(); // instantiate a DrawPanel object
myPanel.setBackground(Color.white);
// set up showButton
// register an event handler for showButton's ActionEvent
showButton = new JButton ("show");
showButton.addActionListener(
// anonymous inner class to handle showButton events
new ActionListener() {
// draw a black filled square shape after clicking showButton
public void actionPerformed (ActionEvent event) {
// call DrawPanel method setShowStatus and pass an parameter
// to decide if show the shape
myPanel.setShowStatus(true);
isShow = myPanel.getShowStatus();
shape = DrawPanel.SQUARE;
// call DrawPanel method setShape to indicate shape to draw
myPanel.setShape(shape);
// call DrawPanel method setFill to indicate to draw a filled shape
myPanel.setFill(true);
// call DrawPanel method draw
myPanel.draw();
myPanel.setFill(true);
myPanel.setForeground(Color.black);
}// end anonymous inner class
);// end call to addActionListener
// set up colorComboBox
// register event handlers for colorComboBox's ItemEvent
colorComboBox = new JComboBox(colorNames);
colorComboBox.setMaximumRowCount(5);
colorComboBox.addItemListener(
// anonymous inner class to handle colorComboBox events
new ItemListener() {
// select shape's color
public void itemStateChanged(ItemEvent event) {
if(event.getStateChange() == ItemEvent.SELECTED)
// call DrawPanel method setForeground
// and pass an element value of colors array
myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
myPanel.draw();
}// end anonymous inner class
); // end call to addItemListener
// set up panel containing buttons
buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
buttonPanel.add(showButton);
buttonPanel.add(colorComboBox);
JPanel radioButtonPanel = new JPanel();
radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
Container container = getContentPane();
container.setLayout(new BorderLayout(10,10));
container.add(myPanel, BorderLayout.CENTER);
container.add(buttonPanel, BorderLayout.EAST);
setSize(500, 400);
setVisible(true);
public static void main(String args[]) {
test application = new test();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
coding 2
import java.awt.*;
import javax.swing.*;
public class DrawPanel extends JPanel {
public final static int CIRCLE = 1, SQUARE = 2;
private int shape;
private boolean fill;
private boolean showStatus;
private int shapeSize = 100;
private Color foreground;
// draw a specified shape
public void paintComponent (Graphics g){
super.paintComponent(g);
// find center
int x=(getSize().width-shapeSize)/2;
int y=(getSize().height-shapeSize)/2;
if (shape == CIRCLE) {
if (fill == true){
g.setColor(foreground);
g.fillOval(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawOval(x, y, shapeSize, shapeSize);
else if (shape == SQUARE){
if (fill == true){
g.setColor(foreground);
g.fillRect(x, y, shapeSize, shapeSize);
else{
g.setColor(foreground);
g.drawRect(x, y, shapeSize, shapeSize);
// set showStatus value
public void setShowStatus (boolean s) {
showStatus = s;
// return showstatus value
public boolean getShowStatus () {
return showStatus;
// set fill value
public void setFill(boolean isFill) {
fill = isFill;
// set shape value
public void setShape(int shapeToDraw) {
shape = shapeToDraw;
// set shapeSize value
public void setShapeSize(int newShapeSize) {
shapeSize = newShapeSize;
// set foreground value
public void setForeground(Color newColor) {
foreground = newColor;
// repaint DrawPanel
public void draw (){
if(showStatus == true)
repaint();Hello,
does setSelectedIndex(int anIndex)
do what you need?
See Java Doc for JComboBox. -
How can I make a gray box or gray screen in Pages over a few lines of text?
How can I make a gray box or gray screen in Pages over a few lines of text?
Thanks. Almost what I was looking for.
While that makes for a gray over the lines, it still does not form a box.
Any other suggestions to form a solid rectangular gray box? -
How can I make a check box active ONLY if another check box is activated?
How can I make a check box active ONLY if another check box is activated?
I have an editable PDF for a client, which contains text fields and check box fields.
There are three main check boxes (let's call them A, B and C) that the user is required to choose from, and I have given all three the same name in the Name tab of the General tab menu but different export values in order that ONLY one of the boxes can be checked at any time. Ticking one will deactivate another if it is already checked, etc.
However, I then have a further two check boxes which I wish to become available ONLY if the second one of the above three boxes is checked. Other than that I do not wish the user to have access to them.
I'm guessing it requires some kind of Action Script or Javascript, which is not my forté! Any help would be much appreciated.
Regards
TonySee Disabling (graying-out) Form Fields by Thom Parker. It covers both Acrobat and LiveCycle forms.
-
How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
Please, need some help here.WHat is navto? is navegate to...? How can i do this?
thanks a lot for your attenttiosn.
Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
created by Bob Levine in Digital Publishing Suite - View the full discussion
Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Digital Publishing Suite at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
How can i make a coppy both side with my hp 6500a plus all in one?
how can i make a both sides coppy with my hp 6500A plus all-in-one?
For windows:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02773085&cc=us&dlc=en&lc=en&product=4083977&tmp...
For MAC:
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01935823&cc=us&dlc=en&lc=en&product=4083977&tmp...
Although I am working on behalf of HP, I am speaking for myself and not for HP.
Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
Happy Troubleshooting : ) -
How can I make my phone number active when viewing from a mobile device. My phone number is in my header in CSS
See this support document http://support.apple.com/kb/HT5661
-
How can I make a query by date with several TDMS files?
Hi,
I have a project that can write and read TDMS files everyday (a file for each day with date and time). There, I can import those files to excel (I choose a file and load it). But, I have a question: How can I make a query by date with those TDMS files? I'd like make a time stamp for start date and stop date, where I could compare the TDMS file dates and sum the values that are in the channels where these files are similar. For example, I save a file with "02/01/2013" name, in other day "03/01/2013", in other day "04/01/2013"... so, i'd like put in time stamp for start date "02/01/2013" file and to stop date "04/01/2013" file, than, sum all values that range with my TDMS files existing. How can I make that?
Thanks all,
ValHello Val_Auto.
You're Brazilian, no? Me too. = ^ - ^ =
I converted VI to version of your LabVIEW (8.5). Is attached in this reply.
This VI search all your TDMS in a range of dates and join them in a single TDMS. I hope this is what you wanted.
Query TDMS is the main VI. The TDMS VI Search changes the date format that out from calendar control (which is DD / MM / YYYY) to DD-MM-YYYY. This is because you can't name files using "/". I chose "-" but, if necessary, you should change to keep the same format of your TDMS files.
If you have any doubt as to its operation or how to make changes to adapt VI for your application, keep at your disposal.
Thank you for your contact; I hope have helped you and succeed in your application.
Wesley Rocha
Application Engineer
National Instruments Brazil
Visite a nossa comunidade em PORTUGUÊS!!!
Attachments:
Query TDMS.vi 62 KB
tdms search.vi 24 KB -
I want to know how can I make my playlist in my iPhone be from oldest to newest?
I want to know how can I make my playlist in my iPhone be from oldest to newest?
You cannot do that from your phone. You can do that from your computer.
-
HT201303 how can i make my photo be entered with a password
how can i make my photo be entered with a password
Photo? You cannot separately password protect a photo.
You can password protect your iPhone at Settings > General > Touch ID & Passcode -
how can I make a graphic (scatter chart) with 1 "y", but multiple "x" (to make a multiple linear regression)?
Émilie,
The default for X-Y Charts is for X values not to be shared, so it's entirely possible for you to create X-Y pair sets that have common Y-values and independent X-values.
This answer assumes, as always, that I properly interpreted your problem statement. A linear fit line for each pair set should satisfy.
Jerry -
How can I make Aperture share on Flickr with sRGB?
Since I upgraded to 3.3, all photos I share on Flickr have an embedded Adobe RGB profile. Changing Web Export presets has no effect; neither does any other setting I can find. How can I make Aperture share the images with sRGB instead of Adobe RGB?
If it is possible you do it by changing the print product country in the iPhoto preferences
LN -
HT204053 I just changed my apple ID, how can I make my icloud link up with my new ID?
I just changed my apple ID, how can I make my icloud link up with my new ID?
Did you simply change the primary email address of your existing AppleID at
https://appleid.apple.com/
Or, did you create a new AppleID. If you created a new AppleID, then you cannot. All you can do is use the iCloud with the old AppleID, or create a new iCloud account with the new AppleID.
If you changed the primary email address of the exisitng AppleID, you may need to uninstall the iCloud account on the iPhone and reinstall it to get it to use the new email address and password (you won't loose anything, its just there a means of resetting the cached credentials associated with the iCloud account). -
How can I display de last items of a region from other page in Portal?
I want to display de last five items (f.e.) included in a region (with attributes created) from other page. I've tried using custom search, but it also shows the attribute names, and I want show the attribute values (I don´t know how can I format these attributes).
Thanks a lot.How can I display the last items of a region from other Oracle Portal page?
Maybe you are looking for
-
Extract Pages- and the Split- not doing what I expect them to
I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board-> one document with only that artwork. When I use the Extract PAges- and the Split- comands to generate multiple docum
-
I think a few pictures speak a thousand words. I try to get creative and design some pages in landscape mode. This is how the TOC looks like in landscape. As you can see there is a chapter and many pages. I didn't use sections to make sure that they
-
Can't export versions and other issues
Background. I installed a SSD inplace of my Mac HD. Moved the Mac HD to the superdrive bay. I have the OSX operating system on the SSD and my home folder on the Mac HD. I used system preference to point the operating system to the new home folder lo
-
Problem with Time Machine/Finder not finding and (keeping) remote drive
I have a Mac Pro and hooked 2 Western Digital My Book 750GB drives via Firewire onto it to use as my time machine backup for the two MBP's in the house. The problem I run into may be more network related than Time Machine related. I have the file sha
-
SU10 mass update blocks all DIA WPs on CUA
Hi all, frome time to time we are having the issue that all DIA WPs on our CUA gets totaly blocked for the time we do mass changes via SU10 to our Child Systems. is there any parameter by which we can limit the amount of WPs used by SU10`? Many thank