Can you use scripting to shift fields?

Is there a way to shift fields up or down using scripting?  Have a form where fields are hidden based on the value of a radio button group.  When the fields are hidden, I want to shift the remaining visible fields up so no gap is present.
Is this possible?
Thanks

I assigned the a variable in the beginning.  Below is the actual script I am using.  It is a combination of my original script and the rect script I found in the reference guides:
var a = this.getField("costs1");
var b = this.getField("costs1");
var aRect = b.rect;
if (this.getField("radiobutton").value == "Yes") {
a.display = display.visible;
aRect[0] += 10; // increment first x-coordinate by 10
aRect[2] += 10; // increment second x-coordinate by 10
b.rect = aRect; // update the value of b.rect
} else {
a.display = display.visible;
aRect[0] -= 50; // increment first x-coordinate by 10
aRect[2] -= 50; // increment second x-coordinate by 10
b.rect = aRect; // update the value of b.rect
This moves the field left or right depending on the radiobutton value (yes/no).  How do I set it to move it up or down?  Is there a "set" property I should be using for the X and Y coordinates?
Thanks for the assistance.

Similar Messages

  • Can you use an itunes gift card to purchase ibooks?

    Can you use an itunes gift card to purchase ibooks on your iphone? If yes, how? When I attempt to purchase a book it automatically appears that it will automatically charge my stored card.
    Thanks!

    To use an iTune Gift Card to buy books...
    Open iTunes on your computer and click on the iTunes Store.
    You'll need to be signed in...
    Click on the little House icon in the dark gray bar across the top. (or Shift+Command+H)
    On the right side of the page under Quick Links click Redeem and enter your code.
    Then it will show your credit balance in the dark gray bar across the top next to your account name to let you know how much you have to spend.
    Then as you buy books, it'll deduct from the credit balanace.
    There is a distinction between, iTunes Gift Card and Apple Gift Card.
    Apple Gift Card: can be used to purchase Apple hardware and accessories at any Apple Retail Store, the Apple Online Store...
    iTunes Gift Card: To give music, movies, TV shows, apps, books, or anything on the iTunes Store, the App Store, the iBooks Store or the Mac App Store, select an iTunes Gift Card

  • Can you use a external hard drive to keep all your iTunes info on it

    Can you use a external hard drive to keep all your iTunes info on it

    Yes.
    The easiest way is to copy the whole iTunes folder out to the external drive, then press and hold down shift as you click the icon to start iTunes. Keep holding shift until asked to "Create or choose a library". Choose the library on the external drive.
    tt2

  • Can you use IMAP with the ipads mail feature?

    Can you use IMAP with the ipads mail feature?

    Kappy,
    Yes, our domain and email accounts are on a server that does accept IMAP. Also, our mac mini and imacs are all set up for IMAP. Buying an ipad will enable me to work from home during this winter.
    Another ?: do you know if you can use text edit with the iPads mail feature? Reason being we have about 100 generic emails that all we have to do is change a few fields before sending out. Can this be integrated in without having to recreate all these messages?
    -TIM

  • Maxl - can you use variables in iferror statements

    hi guys,
    A quick one:
    Can you use variables when doing error handling? I assume the answer is yes, but just wanted to make sure.
    example:
    set app1 = Test;
    set app1_db1 = Test;
    alter database $app1.$app1_db1 force archive to file "C:\\EssbaseBackup\\$app1\\$app1_db1\\$app1_db1.arc";
    iferror 'Bk_$app1.$app1_db1_Error';
    define label 'Bk_$app1.$app1_db1_Error';
    exit 10;
    I am putting error handling into my script and want to double check before I go about making the alterations.
    Many thanks,
    Russell
    Edited by: RussellH-C on 26-Apr-2013 04:45

    You don't need to split the files. Create a Maxl with parameters and then call it in a bat file.
    In the bat you can then check for Error.
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname1 Dbname1
    call :archiveerrcheck
    essmsh -D "%HYP_MONTH_SCRIPTS_DIR%\Maxl_Files\HYP_ESS_Archive.msh" %DECRYPTKEY% Appname2 Dbname2
    call :archiveerrcheck
    archiveerrcheck:
         SET FILE=%MAXLLOG_DIR%\Archive.log
         findstr /R "\<ERROR" %FILE% > ESSErrCheck
          for /F %%A in ("ESSErrCheck") do If %%~zA NEQ 0 (
            call :datestamp
            echo  Error in Archive Process......................... > %ESSLOG%
            copy %FILE% %HYP_MONTH_ERR_DIR%\Essbase\MaxL\Maxl_Error.log
            DEL /Q ESSErrCheck
            call :exit_process
           ) else (
                   echo  %DTSTMP%  Log Out Process was successfull......................... >> %ESSLOG%
                   call :remove_file ESSErrCheck
    GOTO EOF
    :EOFRegards
    Celvin
    http://www.orahyplabs.com

  • Can you use the same Apple ID on more than one MacBook Pro for updates and applications?

    We just got a few new MacBook Pro's and when I went to install updates it said I need to make an Apple ID.  Can you use the same Apple ID and email address for that Apple ID on multiple machines, or do I need them both to be unique per machine?  I'm not sure how that works when you have multiple machines.

    An Apple ID is a user name you use for everything you do with Apple. Creating an account for an Apple service, such as the iTunes Store or the App Store, creates an Apple ID. Apple ID allows you to access other Apple services.   So you can use the same Apple ID for up to 10 Macs associated with it.
    To create an Apple ID you need to enter  your full name and your primary email address as your Apple ID. This will be used as the contact email address for your account.

  • How many Ipods can you use with one Itunes account?

    How many iPods can you use/sync with one iTunes account?

    PT wrote:
    Macistotle wrote:
    Unless you have DRM still haunting your tunes ... Then you can only use those songs on 5 devices. Otherwise, connect as many as you like (as stated above).
    No, you can sync your DRM tracks to an unlimited number of iPods (but only authorized to play on 5 different computers/user accounts)
    Patrick
    So I can sync two iPods to my iTunes account and sync the same digital copy movies that come with some o' my DVDs to both ipods? Do movies make a difference really, DRM-Wise? Thanks in advance.

  • Can you use a iTunes card to purchase more storage for iCloud

    can you use a itunes card to purchase more storage for icloud

    No. iTunes Store only.
    "An iTunes Gift Card lets you shop for anything at the iTunes Store "  >  http://store.apple.com/us/browse/home/giftcards/itunes/gallery

  • Can you use soundtrack pro's loops in your youtube videos or do you need to purchase a license since it is royalty free?

    Can you use soundtrack pro's loops in your youtube videos or do you need to purchase a license since it is royalty free?
    I understand they are royalty free, I am just confused about using the actual loops for films, videos, etc - if there is a special license you must purchase or what?
    Yes sure, it's a library and may be used a lot - but is it legal or against agreement?
    And to clarify - what about music I create on the program , that is ok right?

    If you purchased the software you have the right to use the loops that came with the software in the software to make whatever you want.

  • Can you use the Airport Express A1264 as an AP and a DHCP server at the same time?

    Can you use the Airport Express A1264 as an Access Point and a DHCP server at the same time?
    I would like to use it as a DHCP server and AP at the same time in my LAN (no internet, just local machines through a few switches). I was lead to belive this could be the case from a few networking friends that haven't been friendly enough to help me out setting it up.

    I need it to act as a dLink/Cisco/Linksys/etc basic wifi router, in the fact that you can access it via wifi, and it will spit out DHCP addresses (192.168.1.xxx) to everything wired downstream of it.
    I want to simultaniously provide a Wifi connection and a LAN connection at the same time
    Thanks,
    BRad

  • HT204053 Can you use the same Apple ID for two devices ?

    I have an MacPro and I am buying an iPad.  Can you use the same Apple ID for two devices or should I create an new AppleID for the ipad?

    Welcome to Apple Support Communities
    The Apple ID purpose is to have the same data in all your devices and share your purchases among all your devices, so you can use your Apple ID in both devices

  • Can you use FaceTime using two iPads with same apple id

    Have two iPads for wife and I. Both use same apple ID account. Can you use FaceTime between them?

    Heres what you do. got to settings>facetime>add an email and than add another email (note: cannot be the same email that you use on your apple ID) A verifaction email will be sent. Go to your email account and verify the email by clicking on the link. Now using the other ipad, make a facetime call to the email you just verified and you can now facetime between the two!
    One more side note. Make sure that only the email you just verified has a check mark on it. The other ipad shoud have a check mark next to the orginal apple ID email.

  • Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?

    Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?
    I have 2 and cannot seem to get them to work?

    Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?
    I have 2 and cannot seem to get them to work?

  • How can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    how can you use iMessage between 3 iPads with 3 different users but only one Apple ID?

    No you do not need separate Apple ID's in order to use 3 devices with one Apple ID. I use 4 devices to Message and FaceTime and all use the same Apple ID. You do need to add additional email addresses for the other devices.
    Look at this very informative video for the instructions.
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l

  • Can you use one PC for 2 different Ipods, with out erasing the others music from Itunes?

    Can you use one PC for different Ipod touch's , with out erasing the other persons Itunes music?

    Yes.  See:
    How to use multiple iPods, iPads, or iPhones with one computer

Maybe you are looking for

  • Display data from CSV file in iWeb page

    Hi, I like to display data from a CSV file in iWeb page if a date value from CSV file matches todays value from the system. Here is an example. CSV data values 01/20/2011,Sunny,87 01/21/2011,Cloudy,100 01/22/2011,Rainy,60 If today's date value is 01/

  • ColHdrStri​ng property of Multi-Colu​mn lisbox - Append Table to Report.vi not working - solution.

    Solved an interesting problem today.  Rather than stash somewhere on the laptop I'll post here in hopes of being able to find it again next year   Maybe save someone else some time, too. Application with several similar multi-column listboxes, each o

  • How to avoid seriously bad behaviour in 11g ODBC reading TIMESTAMP fields?

    Hi everyone. I thought that we'd got past all the TIMESTAMP related problems in the ODBC driver, but here is another one! I have a problem which I'd like to share, hoping that someone has an idea why this happens... I have an expensive workaround, bu

  • What is Business System

    Hi All,   Can u give me answers to this questions. on XI  what are these? Netweaver q1. what is SLD ? not description the work of SLD? q2. what do u mean by creating Technical Systems and assigning it to  Business System ? why we do that? q3. one mes

  • How to I make frozen Import warning go away?

    I attempted to open a Word document on Pages and got an import warning.  No problem.  The problem is that I can't make the import warning go away.  The "done" button is not responding and Pages is frozen.  I can't open this or any other document.  Wh