button with two URL field

I want to use a button 'Link' field with 2 different links in combination with a 'response' option field (options: Yes or no).

If the option field 'response' is on 'Yes', url1 links "link" button, if the user clicks the option 'no', this field to url2 button, if the user has not selected anything whatsoever, the domain of the 'Link' button should not send to all URLS. Is this possible in javascript?

Yes, to use the statement 'if' twice or a switch statement. First, you will need to check to see if there was a selection of one of the checkboxes, then if one of the buttons has been selected, you run the code for the appropriate selection. Using a switch statement that is enough to test the none selected, option 1 or option 2.

Tags: Acrobat

Similar Questions

  • How can I associate a button with two slices?

    Hello
    I need help please. How can I associate a button with two slices? or combine the two slices to make one cut or make a form of true polygon on the edges, it will make to the polygon, but it leaves the red lines and I cannot work under this installment... If you understand. Someone help please. Thank you very much.

    Two points.

    First of all, I see that you have forms stars in your image, but that does not mean that you need a star-shaped slice. You can use a little square that is centered on your star. That could make it easier to create your slices. All you have to do is drag lines of leaders in the left seat and superior, two pairs around each star and then drag a slice from one end to the other.

    Noting that brings me to my second point: images must be rectangular. If you want to change the L-shaped area, then you need to swap two images, not one only. This is perhaps why you cannot have the buttons under the threshold of upper sliding of your L shaped section. Because Fireworks needs to make a rectangular image, it is by default in an area that encompasses the range - area you can not the buttons in. It is the lock area non cut which still need to be part of the image, since the part will swap, too.

  • Button with two linked actions. Doesn't work

    My folio I have two buttons (to change the language) I have change the State of the text and the title.

    With a simple TOUCH, she changes two States (two measures).

    In the preview with the Office Viewer that works, but on the ipad isn't (I need two consecutive tap the same button).

    Why?

    I think you came across a weird bug that has not yet been set. In your target MSOs, try to set a Cross Fade with a minimum delay, such as 0.125 seconds. Then it should work.

  • Buttons with the URLS of the links does not

    Well, perhaps this issue has been discussed before... just not met after the search.

    I can get the files (word, PDF documents, etc.) to open very well with published captivate files - no problem, works fine.

    However, the boxes of buttons/click to open URL not doing anything when you click it. The option to open in a new window is selected, the option to 'continue reading' is not checked. The hand cursor appears on the buttons, but when you click it, nothing comes.

    Anyone have any ideas? Is it a security issue?

    Yes.  It's usually because you've posted on a folder location on your hard drive or local network that has NOT been put in place as a location approved in your Flash Global security settings.  (Google for Flash global security)

    To avoid having to do this more than once, I usually just trust the whole D drive on my development computer (where all my current projects are found).  This way no matter where I publish on the D drive, Flash security won't be a problem.

    You do not have this problem when you download and play from a web server, only on a hard drive where you deliver not files via HTTP.

  • Button with a URL redirect and add a process

    I have a button to redirect to a new URL - in the (action when section clickeded) URL redirection
    with the command - next


    http://172.24.133.6:7001 / Application1-Project1-context-root/servlet1




    I want to not only not only this, but also launch an apex as this process (the process name is called choose_location

    Select: P7_LOCATION_PICK in: double P7_SELECTED_LOCATION;

    update set bi_pub_loc = location: P7_SELECTED_LOCATION where
    ID = 1;

    How can I do both when the button is clicked, thank you, Doug

    The easiest way would be to change the button submit, have an Onsubmit PLSQL process that makes what you mentioned and then have a branch that is redirected to the specified URL.

    Check the button not entered record to submit and to redirect to another page for a similar situation

  • A button with two functions CLICK

    I'm sure that I must write an if else for it to almost 100% statement.  However, I'm not exactly sure how do.  Here is the code I have for a button (movieclip) that I created.  He is supposed to play an animation when you click on it.  Then when you click it again it was suppose to play a second animation that he will bring back the State of origin.  What's happening is, it goes directly to the State clicked without playing the animation.  However when you click the second time he plays the animation that takes back you to the original state.  Am I right to believe the only way to get the animation to play on two clicks is to use an if else statement and can someone help with the fi, the else statement.  I never wrote the script for one.

    function clickPlus(event:MouseEvent):void {}
    Btn1.gotoAndPlay ("clickOpen");
    }
    Btn1.addEventListener (MouseEvent.CLICK, clickPlus);

    function clickX(event:MouseEvent):void {}
    Btn1.gotoAndPlay ("clickClose");
    }
    Btn1.addEventListener (MouseEvent.CLICK, clickX);
    Btn1. RemoveEventListener (MouseEvent.CLICK, clickPlus);

    Have you tried moving the first btn1.addEventListener on top? All orders are executed in sequence given/written. I do not have to appoint executives, but they are probably right, I use the number of the frame. You could do/take a picture of the first image, convert to the key and make the movieclip on the next run frame. Then stop it on the frame and do the same thing with the button to operate the other movieclip, here's an example I did http://manamoppet.deviantart.com/art/Something-in-the-wall-127359486 . It is an alternative, but worked for my purpose...

    An if else statement works like this, but I'm certainly NOT some cases what I write here will work with your movieclips, tracks used to find out if it has worked, so you can delete:

    var variable1:Boolean = true;
    var variable2:Boolean = false;

    Btn1.addEventListener (MouseEvent.CLICK, clickPlus) ;//

    function clickPlus(event:MouseEvent):void {}
    var variable2 = false;

    If (variable1 == true) {//goes to and playes animation btn1 if the variable is equal to the value 'true' (or the number of given number)}
    Btn1.gotoAndPlay ("clickOpen");
    trace ("Start nummer 1");
    variable2 = true;
    Variable1 = false;
    }

    else {//executes on all values which is not seized written if statement
    trace ("start 454654 nummer");
    Btn1.gotoAndPLay (click Close "")
    Variable1 = true;

    }

    }

  • Group of radio buttons with the URL of image in a table

    I try to display text and an image for a group of radio buttons to make the form look like

    text (*) for point 1 {image for point 1}

    text () for article 2 item 2 {image}

    text () to the point 3 {image for point 3}

    I found these:

    Re: Is it possible to display an image instead of the button in a group of radio buttons?

    Display image in the Group of radio buttons?

    It looks like all I have to do is create a LOV that looks like:

    SELECT {complex stuff that generates the text string, tag img and image URL}

    DB_PK

    OF dynamic_view_for_lov - public synonym

    But my images are stored in a table.

    I was able to create an IR using the "= BLOB column Format" method.

    The SQL code for the report looks like:

    Select

    display_text, db_pk, image_len, image_clob

    of dynamic_view_for_lov - public synonym

    And the IMAGE_LEN column number/Date Format is:

    IMAGE: DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK:Inline:Download

    My question: how to create the URL for the tag img for the LOV?

    Thank you very much

    MK

    MikeKutz wrote:

    My question: how to create the URL for the tag img for the LOV?

    Use of the apex_util.get_blob_file_src method of the API.

  • single button with two expression?

    Hello

    How to configure 2 expressions for a Single_Button in terms of the 'Condition' of the Page Edit button.

    I already have an expression like:-'Expression 1 = P1_NO' and condition_type = "Value of the element in the Expression 1 is NULL", but this being specified I want to add an expression in the expression 2 how I can do?

    apprecaited


    In depth.

    Hello deep,

    I just created an example (form & report on a Table) and changed the State of the button [Apply Changes] to the Condition Type = PL/SQL Expression and Expression 1 is
    : P20_PRODUCT_ID IS NOT NULL AND: P20_PRODUCT_AVAIL = 'Y '.
    And that works like a charm.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

  • How do I open the browser web blackberry with a url given by a click of a button.

    Hi all

    I'm developing an application in which I want to open the browser web blackberry with a URL given using a click of a button. How can I do that. I use this code inside the earpiece button

    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    Private private = Browser.getDefaultSession ();
    browserSession.displayPage ("http://www.google.com");
    }

    What is a good way to do this? Please help me...

    Yes

  • can perform us two actions with a single button in two clicks, one after the other?

    Mr President.

    can perform us two actions with a single button in two clicks, one after the other?

    I want that when I click on the button Add once it add data to the database and when I click again on this button it clears the form data to the empty fields.

    Concerning

    Tanvir

    In the code, it should be easy.

    The following code adds that a button called butman with text 'ADD '.
    It then registers a listener that will be called if the user clicks the button.

    This listener then calls the runAddData method if you clicked butman while it contained the text of "ADD" and it calls the runClearData method otherwise.
    That's why he will swap the functionality of the button between ADD and CLEAR on each click.

    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});
    

    I hope that's what you wanted.

    Further reflection.
    You might want to run the ADD and CLEAR methods in their own son so that it can run in the background without slowing down your user interface.

    I also reuse rather a single button for several features instead of to apply with hundreds of nodes used only rarely with masses of code to show and hide as needed.

  • Problem with web url assignment to button

    I have a file decompiled swf which I modified heavily composed of two big buttons with identical behavior. When I assign a url to the layer button after double clicking the left button, then the right, the behavior are both applied to the same sprite who, seen in the library, represents only the left button ("url one"), while the second url is missing. There are two separate layers for each button on the stage, but I can't get distinct URL applied to them because of that.

    I could just create two separate files, but which would add to the amount of code... Any suggestions?

    You are welcome.

    If that solves your problem, please mark this thread as answered.

  • A VI with two stop buttons

    I have a single VI which shows the two stop on the front panel buttons. My scheme is quite simple with 2 while loops and the other for loop. Whence the second stop button? Why is the second button here? How can I remove the second stop button?

    Brijesh says:

    Hello

    When you put two while loop. Stop button automatically two will come.

    Not always true. It all depends on what part of the palette that you select while a loop from. I can't, however, don't forget the name of the part of the pallet where it automatically to the stop button. There are also better ways to stop the parallel loops as the queues or the authors of the notifications if you have more than 2. Or, the action engines (I always throw this to save Ben from having to post!)

  • Whenever I hit the installer and run it, it comes up with a window with two buttons, an asset and a button at home. A small circle rotates around on the screen. Nothing ever happens in addition. I tried it several times redownloading. What sh

    Whenever I hit the installer and run it, it comes up with a window with two buttons, an asset and a button at home. A small circle rotates around on the screen. Nothing ever happens in addition. I tried to re - download several times. What should I do? Here is a picture of what happens:CCFail.PNG

    See if the following can help:

    White screen

    https://forums.Adobe.com/thread/1249756

  • two buttons with single function

    I want to create two buttons for single function and a single button for a function. For example, I click on button1, the display shows "clicked1".

    If I clicked on button2, the display shows "clicked2". If I click on button1, and then click button2, it will show that "the two buttons are clicked. However, it does not work in two buttons with single function. What is the problem? Here's the code.

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    var button1:MovieClip = new Button1();

    Button1.x = 200;

    Button1.y = 200;

    addChild (button1);

    var button2:MovieClip = new Button2();

    Button2.x = 300;

    Button2.y = 250;

    addChild (button2);

    Button1.addEventListener (MouseEvent.CLICK, onClick);

    Button2.addEventListener (MouseEvent.CLICK, onClick2);

    var isClicked:Boolean;

    var isClicked1:Boolean;

    function onClick(evt:MouseEvent):void {}

    isClicked = true;

    trace ("clicked1");

    }

    function onClick2(evt:MouseEvent):void {}

    isClicked1 = true;

    trace ("clicked2");

    }

    If (isClicked & & isClicked1) {}

    trace ("two buttons are clicked");

    }

    Copy the following code

    If (isClicked & isClicked1) {}

    trace ("two buttons are clicked");

    }

    should run WHEN you click on your buttons.  That is to say, place it in a function and call that function when you click on your buttons and after that your Boolean values are updated.  (probably then want to reset these Boolean values in the called function).

  • How to add an animation to a text field with two lines?

    I have a text field with two or more lines. Why is it not possible now to apply a text animation?àpe_textfield.jpg

    Animating text, by design, only works on a single line of text.

    To use it for multiple lines, you can either create two separate titles or keyframing to create your own animation effect.

Maybe you are looking for