Moving buttons in a subform switch script

Hi,
I've got a couple of issues with a form I'm making.
1.  It's flowable and when I set the subform to be flowed it moves my buttons around at the beginning -- print, reset, e-mail -- and I can't put spacing between them any more.  How do I correct that?
2.  I have a drop down list that will alter the text in some fields based on the selection.  I can get it switch in the first field, but not later ones.  I don't know if that's because they're in subforms or what?  I had this working yesterday and now it doesn't and I'm not totally sure what I changed.
I tried to put the file on acrobat.com to then put a link in here to it, but it won't let me import it because it's already a pdf.  I do have it downloaded, but when open that it tries to save it back on my computer.  So if there is another wya to show you the file to be helpful that would be good to know.
Thanks!

Hi,
Here is the form back to you:
https://acrobat.com/#d=pQBEBIQpecZvF1v1vE1eKg
You will see I have place the three buttons inside a positioned subform. This allows you to separate the buttons and position them as you want.
The switch statement had an incomplete reference for the last two objects: Subform2.Performance.rawValue and Subform3.PerformanceComments.rawValue.
These showed up in the Javascript Console (Control+J), which you should use to debug your forms. When in preview mode or in Acrobat press Control+J. As you interact with the form any errors should show up here.
Good luck,
Niall

Similar Messages

  • Radio button's click event to script both ".presence" and ".mandatory" -- Need help !

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

  • I moved and would like to switch my skype number t...

    I moved and would like to switch my skype number to the new area code, is this possible?

    Yes.
    You may have to call into Verizon Customer care if you have a smartphone to remove the data plan and help you move over.  Other than that it's a simple swap between devices.  Contract doesn't matter unless you negligent in payment(or the person who you bought the device from is).

  • HT4623 just updated my iPhone 4s to ios6, now my phone won't turn back on. The apple logo comes on and sits then shuts off. I have held down the home button and on/off switch several times to reset, but same problem persists.

    just updated my iPhone 4s to ios6, now my phone won't turn back on. The apple logo comes on and sits then shuts off. Then comes back on and just sits.I have held down the home button and on/off switch several times to reset, but same problem persists.

    Place iPhone on Wall Charger for at least 10 minutes. Then keep on charger and Reset, hold both home and power buttons until the iPhone begins to start, this can take about 20 seconds of holding both buttons while on charger. If still problem, open iTunes 10.7 on computer, connect iPhone to computer with USB Cable, hold both home and power buttons for about 20 seconds until iTunes recognizes iPhone in Recovery Mode, then click Restore button of iTunes. If still problem, try DFU Mode Restore, here are the steps. Open iTunes on computer. Connect iPhone to computer with USB cable. Hold both Home and Power buttons, after exactly 10 seconds release the Power Button, keep holding the Home button until iTunes recognizes iPhone in Recovery Mode, usually about 20 seconds time. If the iPhone screen is black, blank this is DFU Mode. Click the Restore button of iTunes. DFU Mode can be difficult to enter sometimes, just keep trying. DFU Mode is a black, blank screen with iTunes saying Recovery Mode. If still problem and there is Warranty or AppleCare make Genius reservation and take to Apple for resolution.

  • LogicX  FREE Channel Switcher script by AUDIOGROCERY

    LogicX  FREE Channel Switcher scripter preset by AUDIOGROCERY
    Audiogrocery is excited to announce the new A.G Midi Channel Switcher which is royalty free. The A.G Midi Channel Switcher is a new ultimate midi processing script/preset designed for the LogicX scripter plugin. You can use this plugin preset to switch easily the incoming midi channel into any other channel to be able to change the instrument patch, articulation etc via Key Switches or Program Change messages. The A.G Channel Switcher is designed to be used with any multitimbral Software Instruments such as Spectrasonics Omnisphere, NI Kontakt, Steinberg Halion Sonic etc, or with multitimbral hardware midi devices via the Logic External Instrument software plugin.  
    Key Features
    • Smooth channel/patch change. You can hold down a few notes and switch to another midi channel via Key Switch (KS) or Program Change (PC) without any interruption. After the switching, the new notes will be performed by the new patch while the old “held” notes will play the old patch until you release them. The method guarantees no hanging note events!
    • Non-note events “Pass Thru”. The midi channel of the all other midi events such as Control Change, Pitch Bend etc is transformed into new channel so you can control the new patch accordingly.
    • Midi Channel Key Switching. You can assign a custom Key Switching range using Min/Max Note assigners UI parameters. 
    • Midi Channel Program Change Switching.
    The A.G Midi Channel Switcher comes with Mac Installer for easy install and use in any LogicX project. The tool comes with a detailed User Guide documentation PDF included in the pack.
    PS. Audiogrocery is going to release a bunch of FREE Pro Environments & Scripter plugins for Logic, as well as NI Kontakt Extra scripts. Stay in tune…
    Regards,
    A.G

    Hi, for Oracle 10g you can use the Oracle Policy for custom alerts, then you can monitoring the database from Oracle Database Control.
    Regards.

  • Tooltips for moving buttons

    Hi all, I am trying to add tooltips on mouse-over to moving
    buttons (the buttons are movie clips acting as buttons). It works
    at first, but when the movie clips enter the second motion tween
    they start blinking as the movie clips start to play all four
    frames that I have given to them (for highlighted and selected). It
    seems like my tooltip has cancelled out the stop part of
    goToAndStop()… If I click on a movie clip when it is blinking
    it stops blinking and goes back to the default state, but then
    nothing else work (i.e. highlighting, selecting).
    Does anyone recognize this and have any tips on how to solve
    it? I have tried to solve this for days and I’m sure
    it’s really simple but I am totally new to Actionscript and
    completely lost… I would appreciate any kind of help :)

    Just wondering if it would be possible to register a MouseMotionListener on your mousePanel that, on mouseMoved, could search the components below it for the top-most button and then set the mousePanel's own toolTipText to match the button's toolTipText. Perhaps SwingUtilities.getDeepestComponentAt() (or something similar) would help. Maybe have a look through the RootPane tutorial (especially the section on the GlassPane) for a similar situation.
    http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html

  • Reg : show/hide subforms under buttons in Static page(Java Script)

    Hi All ,
    I am creating Adobe Interactive form(static page). In this page have 3 buttons.For each button one subform is there. I want to show/hide subforms under buttons.
    I am using javascript. Please give me the code for this.
    Thanks
    Risha

    Hi Risha,
    can you explain your question like do u have some condtions to show or hide the subform? OR if u click
    button you want to show the subform and by default subform should be hidden something like this?
    Normally for showing the subfrom on click of the button: (By default make your subform invisible from its properties).
    Select the button and in the click event select java script option and write the following code:
    Subform.presence = "visible";
    (*you have to give full path of the subform instead of only subform name).
    With Regards,
    Ravi

  • Button not disabling using Java Script after confirm message in button

    I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
    Action When Button Clicked:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target:
    javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
    When I click the button, the confirmation message is displayed.
    However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
    Am I missing something?
    Appreciate your help. Thanks in advance

    Hi,
    try adding
    <script>
       alert('Testing');
    </script>
    This actually adds the script to the page body and not the header as af:resources does
    Frank

  • Help with moving buttons

    I am totally new with flash. I am using the following
    tutorial which I believe I followed correctly.
    http://www.flash-game-design.com/flash-tutorials/advWebsite-flash-tutorial.html
    I have edited the site just a bit adding my own graphics and
    colors. The problem is that when you first view the site all the
    buttons stay in the up position. Once you click each one once, they
    function properly. Here is the script that I have.
    stop()
    content.gotoAndStop("home")
    current = menu.home_button
    setMove = true;
    yMove = -10
    menu.home_button.onPress = function(){
    if(this != current){
    current._y = 0
    setMove = true
    content.gotoAndStop("home")
    current = this
    menu.league_button.onPress = function(){
    if(this != current){
    current._y = 0
    setMove = true
    content.gotoAndStop("league")
    current = this
    menu.photos_button.onPress = function(){
    if(this != current){
    current._y = 0
    setMove = true
    content.gotoAndStop("photos")
    current = this
    menu.downloads_button.onPress = function(){
    if(this != current){
    current._y = 0
    setMove = true
    content.gotoAndStop("downloads")
    current = this
    menu.forum_button.onPress = function(){
    if(this != current){
    current._y = 0
    setMove = true
    content.gotoAndStop("forum")
    current = this
    this.onEnterFrame = function(){
    if(setMove){
    if(yMove < current._y){
    current._y --
    }else{
    setMove = false
    Also here is a link to the actual site that I have published.
    http://67.175.252.196/New%20Site/Test%20Website.html
    Any help would be greatly appreciated.

    I just figured it out. The buttons just needed to be moved
    down below the bar. It had nothing to do with the
    actionscript.

  • How do I use the button states in an action script?

    In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
    BR,
    Madeleine

    When you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
    The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
    Hide Group   so that eventual down mimicked states on previously clicked buttons disappear
    Show Im_Downx    to show the down image for that button

  • How to create a button that Copies subform data and paste it to a new page?

    Hi , I'm want to create a button that when clicked copys all the data from the feilds of a subform off the previous page and paste it into current page.
    I have used Steve's "Simple table.pdf example" to add a subform called DecorationDetail that has a button that adds an instance when clicked.
    Contained in the decorationdetail subform are feilds named Quantity, Description,UnitPrice etc. and a delete instance button.
    So when the first page is filled out, and a second page with blank duplicate feilds is added by a add page button. I want to be able to click a button
    positioned at the end of the row of feilds, and it then copies the same subform data from the previous coresponding page and pastes it into the current page subform feilds.
    Hope this make sense?. A step by step guide would be greatly appreciated!!!.

    Hi,
    Does this article provide you with some clues? http://www.perfectwebtutorials.com/2011/how-to-create-simple-contact-form-in-flash/
    Thanks,
    Preran

  • How to get the handle of all text fields in the subforms, using script

    Hi Friends,
    I have around 20 fields in a subform, how can i get the names of all the fields using script.
    I wish to enhance the following script where the field names are hard coded
    thereby the script itself will get the names of the field names.
    var f1 = this.parent.somExpression + ".TextField2" + ",";
    var f2 = f1 + this.parent.somExpression + ".DropDownList1" + ",";
    var f3 = f2 + this.parent.somExpression + ".NumericField1";
    xfa.host.resetData(f3);
    Any help will be greatly appreciated..
    Thanks
    JJ

    Hi Paul,
    Thanks for your comments.
    I achieved the clear contents by resetting, by taking input from your thoughts..
    form1.sub1.sub2.sub3.table_1.addDelete_Top.addDelete.deleteRow::click - (JavaScript, client)
    //Here is my code finally look like..
    //row 1, table_1 are also subforms
    for (var i=1;i<10;i++){
    var myRow = this.resolveNode("table_1.row1[" + i + "]");
    if(myRow.presence == "hidden"){
    i = i-1;
    var myRowDelete = this.resolveNode("table_1.row1[" + i + "]");
    if(i!=0){
    xfa.host.resetData(myRowDelete.somExpression);
    myRowDelete.presence = "hidden";
    break;
    if(i==9){
    xfa.host.resetData(myRow.somExpression);
    myRow.presence = "hidden";
    break;
    Thanks
    JJ

  • How do I open a window at moving button's current location?

    I'm creating a flash movie of various fish swimming across
    the screen. At the moment I've got each fish as a movie symbol
    inside a button symbol whose position moves across the screen as
    the fish swims along. When you click a fish I want text to pop up
    at the fish's current location telling you about the fish. The text
    sits there while the fish continues to swim away and after a
    certain time the text disappears.
    The fish swims away but the text needs to stays put. If you
    click the fish again the same text appears at the new location as
    well, so I need to be able to have multiple instances of the text
    on screen at once.
    What is the best way to make this text appear at the fish's
    current location and disappear again after a certain time? In the
    long term I'll probably want to make the text appear in a bubble
    and have a little picture of the fish as well. The text for each
    fish will be different, describing that species of fish and his
    habitat, etc.
    I've never touched Flash before so any help would be greatly
    appreciated.
    Which way should I go? Action Script? Behaviors? Listeners
    & Broadcasters? Something else?
    Any suggestions greatly appreciated! Please help!
    I'm using Flash Professional 8.
    Thanks,
    John

    Well, if you've really got no experience, this may be a
    little awkward, but
    the answer is yes, it involves ActionScript.
    There are several potential solutions, but the basic
    principle is to track
    the _x, _y coordinates of the fish movieClip when the user
    clicks on it.
    Then have a dynamic text box that is inside another movieClip
    display the
    correct text at those specific coordinates. This is not
    really a task to
    dive into (no pun intended) as a beginner. I'd look into
    variables,
    functions, and specifically duplicateMovieClip (use this on
    the text
    movieClip) for starters.
    --KB
    "Tregithew" <[email protected]> wrote in
    message
    news:eilkil$se4$[email protected]..
    > I'm creating a flash movie of various fish swimming
    across the screen. At
    > the
    > moment I've got each fish as a movie symbol inside a
    button symbol whose
    > position moves across the screen as the fish swims
    along. When you click a
    > fish
    > I want text to pop up at the fish's current location
    telling you about the
    > fish. The text sits there while the fish continues to
    swim away and after
    > a
    > certain time the text disappears.
    >
    > The fish swims away but the text needs to stays put. If
    you click the fish
    > again the same text appears at the new location as well,
    so I need to be
    > able
    > to have multiple instances of the text on screen at
    once.
    >
    > What is the best way to make this text appear at the
    fish's current
    > location
    > and disappear again after a certain time? In the long
    term I'll probably
    > want
    > to make the text appear in a bubble and have a little
    picture of the fish
    > as
    > well. The text for each fish will be different,
    describing that species of
    > fish
    > and his habitat, etc.
    >
    > I've never touched Flash before so any help would be
    greatly appreciated.
    >
    > Which way should I go? Action Script? Behaviors?
    Listeners & Broadcasters?
    > Something else?
    >
    > Any suggestions greatly appreciated! Please help!
    >
    > I'm using Flash Professional 8.
    >
    > Thanks,
    > John
    >
    >
    >

  • Broken Reset Button on SG 300 Switch - Need to reset

    I can't seem to reset my switch and realized the reset button is missing/broken off.  Is there an alternate method to reset the switch to factory settings?  If not, how do I figure out the IP of the web interface, it is not the default.                    

    Mark,
    Is the web interface simply not loading or do you not have the password? Your DHCP range does not matter unless there is another device on the network that is currently assigned 192.168.1.254. If that is the case you will have trouble accessing the web UI. It is usually easiest to plug ONLY a PC and the switch together and assign a static IP to the PC:
    IP Address: 192.168.1.200
    Subnet Mask: 255.255.255.0
    Default Gateway: None
    DNS Servers: None
    This will allow you to access the switch without interference from other network devices. Remember to change the PC back to DHCP when you are done. If you do in fact have an IP conflict you should also change the switch to a different static IP.
    You can also access the switch using a console cable. You can check the settings and see if the web interface has been disabled or you can reset the password in case you lost it. Check the Admin Guide for details:
    http://www.cisco.com/en/US/docs/switches/lan/csbms/sf30x_sg30x/administration_guide/78-19308-01.pdf
    Let us know if you have any other questions.
    - Marty

  • Custom button to open navigation menu + scripts?

    I just tried to make a custom button to open/close the navigation menu. Is there a custom script available for this? Does anyone know if there are any free scripts available for download/import for Adobe Captivate? Is there a way to do it within Captivate without custom scripts?
    Best, Steve

    Hi Steve,
    No apologies, each app has its proper jargon, but wanted to be sure.
    You do not need a script. Just point to your expand and collapse button in the Settings of the TOC. They will replace the tiny little double arrows that are the default icons.  On the screenshot I highlighted that portion of the Settings, open the browse icon to point to your button.
    Lilybiri

Maybe you are looking for

  • The piracy of music and software

    I have to say that I don't normally use iTunes. I use it on occassion when there is just one song that I want that I can't find elsewhere. Recently I purchased one and realized how restricted it is. First off, you have to authorize your computer to p

  • Error in Local Message System

    i wanted to send the messages from solution manager menu help create support message , here I am facing the problem when i am creating the message in the menu HELP -> Create Syupport Message for your reference am attaching the screen shot. Error in L

  • I restored my iPhone and I cant view the purchased apps

    I also have mountain lion with the new itunes and I can't find the "purchased" button anywhere. My friend told me that she had the same situation and she had to install evrething from scratch - one by one. any help, please?

  • Unable to send Yahoo! mail through Mail

    Hello, I'm runnning Mail version 6.6 on my MacBook with Mountain Lion. My outgoing smtp settings for Yahoo! Mail stopped working a year or more ago. This only affects my MacBook Mail - not my iPhone, iPad or Yahoo! webmail. Other email accounts inclu

  • Is it possible to make a backup of your mac email boxes? if so how?

    Hi, I have had a apple email account for a few years.. and I think I have a couple of thousand of email messages on the server... I was wondering...Is there a way to make some sort of backup of the messages and save to the computer? And is it easy to