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,
Chris

Hi 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

Similar Messages

  • XDCAM HD workflow with Adobe Premiere Pro CC and Macbook Pro

    Hi folks,
    I have an assignment for a TV production to secure and convert the data (mxf files XDCAM HD 422 1080i 50 / 50 Mbit/sec with 8 audio channels) from Sony XDCAM camcorders (PDW-700) for postproduction.
    The producer wants me to convert the mxf files during production to Apple ProRes 422 (HQ) for faster and smooth editing during postproduction.
    I'm not sure about the final output yet, but I guess it will be either 720p50 or 1080i 25, since the production will be broadcast and as far as I know this is the standard for HD on German television. It is also not clear which NLE will be used for editing (usually one of the producers edits their projects with FCP, but this time they've got their hands full and are still looking for someone to outsource postproduction.
    Unfortunately, my Macbook is getting fixed as we speak, so I can't try things out.
    Since this is the first time I'm doing this workflow, could someone please check if I got everything right?
    1. Can someone please confirm that I can actually convert the mxf files using AME CC to Apple ProRes 422?
    Or do I need to install any other tools/converters for this task? Does MPEG streamclip do the job? Any other freeware?
    2. When converting to Apple ProRes422, the producer suggested to deinterlace the footage (1080i 50) to 25p, if 720p or 1080p I have to find out tomorrow since our conversation got interrupted this afternoon.
    In my opinion this doesn't make sense, though. First, if output to 1080i 25 it has to stay interlaced anyway. Second, in case the output will be 720p 50 I would edit the footage either natively or in Apple ProRes 422, but leave deinterlacing until the very end when outputting to the final format. This way I could use an advanced deinterlacer, e.g. the one from Magic Bullet Suite, rather than just checking some deinterlace box in the export settings for Apple ProRes 422.
    The reason the producer suggested to deinterlace right away when using  an intermediate like ProRes was that she and the client got irritated by the jagged lines from the interlaced footage when editing the last project with the same requirements on a progressive display.
    3. What would be the best solution to tackle this issue (jagged lines) during editing?
    As I said my Mac is getting fixed, so I have no way of trying things out,and I usually edit DSLR footage which is progressive anyway.
    But if I remember correctly I can switch my monitor between 1080p and 1080i. This should do the trick, shouldn't it?
    4. Can I keep all of the 8 audio tracks when converting to ProRes using AME CC ?
    5. Is ProRes422 (HQ) really necessary, or is the regular quality sufficient for this kind of job?
    6. Let's assume the whole project would be edited within Adobe Premiere Pro CC and  system specs as stated below:
    Since Adobe Premiere Pro CC has native support for  XDCAM HD is there any advantage of using an intermediate like ProRes at all?
    How smooth is native editing with XDCAM HD in Premiere Pro CC? I don't think there will be more than 3-4 video tracks in use...
    Thanks for your help!
    working with
    Adobe Premiere Pro CC and Adobe Media Encoder CC
    Apple MacBook Pro
    Intel Core  i7 Quad Core Prozessor
    2.3 GHz and 6MB L3 Cache
    16 GB RAM 1600MHz DDR3,
    256 GB SSD
    Intel HD Graphics 4000 512MB + nVidia GeForce GT 650M with 1 GB GDDR5 RAM

    Thanks Jim! I knew there must be a reason xdcam is widely uses for eng aquistion :) I think they used FCP 6 or 7 on their last project... So what about monitoring interlaced footage on a progressive screen? Any advice on that? Is there a converter built in to APP CC that deinterlaces in realtime when monitoring interlaced sources on a progressive screen? And would you agree that deinterlacing source material is best left right before outputting?

  • 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

  • Adobe updater is crashing with adobe photoshop elements 6 and mac os version 10.9.4 (on a brand new install)  . How to overcome  this ?

    adobe updater is crashing with adobe photoshop elements 6 and mac os version 10.9.4 (on a brand new install)  . How to overcome  this ?

    Maybe I typed it wrong ...it is unchecked.
    This is the message I receive:
    Process:         Adobe Updater
    Path:            /Applications/Utilities/Adobe Utilities.localized/*/Adobe Updater.app/Contents/MacOS/Adobe Updater
    Identifier:      "com.Adobe.ESD.AdobeUpdaterApplication"
    Version:         Adobe Updater 5.1.0.1082 (5.1.0.1082)
    Code Type:       X86 (Native)
    Parent Process:  launchd
    Responsible:     Adobe Updater
    User ID:         501
    Date/Time:       2014-11-21 12:39:47.691 -0600
    OS Version:      Mac OS X 10.9.5 (13F34)
    Report Version:  11
    Anonymous UUID:  42CCAEE7-C520-BA70-4B27-711A184AB1A5
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    abort() called
    terminating with uncaught exception of type std::runtime_error: Unable to determine registration filepath!
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib        0x93982952 __pthread_kill + 10
    1   libsystem_pthread.dylib       0x96f15167 pthread_kill + 101
    2   libsystem_c.dylib             0x940f029c abort + 155
    3   libc++abi.dylib               0x99fe06c9 abort_message + 169
    4   libc++abi.dylib               0x9a00147d default_terminate_handler() + 264
    5   libc++abi.dylib               0x99ffec30 std::__terminate(void (*)()) + 14
    6   libc++abi.dylib               0x99ffe64b __cxa_throw + 116
    7   "com.Adobe.ESD.AdobeUpdaterApplication"0x0004e4a3 0x1000 + 316579
    8   "com.Adobe.ESD.AdobeUpdaterApplication"0x00056f19 0x1000 + 352025
    9   "com.Adobe.ESD.AdobeUpdaterApplication"0x00024499 0x1000 + 144537
    10  "com.Adobe.ESD.AdobeUpdaterApplication"0x000139c0 0x1000 + 76224
    11  "com.Adobe.ESD.AdobeUpdaterApplication"0x00002912 0x1000 + 6418
    12  "com.Adobe.ESD.AdobeUpdaterApplication"0x0000282d 0x1000 + 6189
    Thread 1:: Dispatch queue: com.apple.libdispatch-manager
    0   libsystem_kernel.dylib        0x93983992 kevent64 + 10
    1   libdispatch.dylib             0x96f1e899 dispatchmgr_invoke + 238
    2   libdispatch.dylib             0x96f1e532 dispatchmgr_thread + 52
    Thread 2:
    0   libsystem_kernel.dylib        0x93983046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x96f15dcf pthreadwqthread + 372
    2   libsystem_pthread.dylib       0x96f19cce start_wqthread + 30
    Thread 3:
    0   libsystem_kernel.dylib        0x93983046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x96f15dcf pthreadwqthread + 372
    2   libsystem_pthread.dylib       0x96f19cce start_wqthread + 30
    Thread 4:
    0   libsystem_kernel.dylib        0x93983046 __workq_kernreturn + 10
    1   libsystem_pthread.dylib       0x96f15dcf pthreadwqthread + 372
    2   libsystem_pthread.dylib       0x96f19cce start_wqthread + 30
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x00000000  ebx: 0xa10e2c0c  ecx: 0xbffff0dc  edx: 0x93982952
      edi: 0xa13a31a8  esi: 0x00000006  ebp: 0xbffff0f8  esp: 0xbffff0dc
       ss: 0x00000023  efl: 0x00000206  eip: 0x93982952   cs: 0x0000000b
       ds: 0x00000023   es: 0x00000023   fs: 0x00000000   gs: 0x0000000f
      cr2: 0x99fe3e46
    Logical CPU:     0
    Error Code:      0x00080148
    Trap Number:     132
    Binary Images:
        0x1000 -   0x24cff7 +"com.Adobe.ESD.AdobeUpdaterApplication" (Adobe Updater 5.1.0.1082 - 5.1.0.1082) <3D59867C-5698-4D46-AD1F-C357C48B75AA> /Applications/Utilities/Adobe Utilities.localized/*/Adobe Updater.app/Contents/MacOS/Adobe Updater
      0x3ce000 -   0x3d9fff  com.apple.CommerceCore (1.0 - 42) <D28DD970-4B69-3848-9BCC-3C67323B3D9C> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCor e.framework/Versions/A/CommerceCore
    0x493f000 -  0x4964ff9  com.apple.framework.familycontrols (4.1 - 410) <A33A97EE-C735-38BA-9B49-5D78DAA3DEDA> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
    0x8fea6000 - 0x8fed8417  dyld (239.4) <0F2176BD-4239-3506-BA41-3B885269520E> /usr/lib/dyld
    0x90008000 - 0x90023ff5  com.apple.openscripting (1.4 - 157) <5C161A52-8D2F-3D56-A988-05727BED7A59> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework /Versions/A/OpenScripting
    0x90024000 - 0x90025fff  liblangid.dylib (117) <F18F76C6-7E4B-34AD-AE81-C1C031BF2F7D> /usr/lib/liblangid.dylib
    0x90026000 - 0x90109ff7  libcrypto.0.9.8.dylib (52) <D3AB1D26-30BA-36D3-956C-EC7D7185C396> /usr/lib/libcrypto.0.9.8.dylib
    0x9010a000 - 0x90135ff7  libsystem_network.dylib (241.3) <71EBA489-386D-3608-ADE6-CB50EBD1AB1B> /usr/lib/system/libsystem_network.dylib
    0x90136000 - 0x9052effb  com.apple.CoreGraphics (1.600.0 - 599.35.4) <2B46D887-CAED-30F3-B009-1EBF0C71DC2E> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x9069c000 - 0x906a5fff  com.apple.audio.SoundManager (4.1 - 4.1) <68B7CEB7-AF09-3E24-8548-6ABF065B5186> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/V ersions/A/CarbonSound
    ...and it goes on and on.
    Joy (Awbrey) Schichtl
    [email protected]

  • Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows

    Here's some information on an issue that we've identified with Matrox products and Encore CS5.1:
    "Issue with Adobe Encore CS5.1 and Matrox MAX H.264 encoding on Windows"

    Still flickering on Encore even when rendered in MPEG-2 DVD in Pemiere Pro CS5.5. Looks perfect in Premiere Pro.
    Any other ideas?
    EDIT: Was looking for Google for people with similar problems to me and I came across this http://forums.adobe.com/message/3959757?tstart=0
    I am currently re-rendering the video in PAL DV Widescreen MPEG-2 DVD and using maximum render quality.

  • 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.
    Anne

    I 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.

  • 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,
    Anjna

    Hi,
    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

  • Radio Button and combo box in Pdf Report.

    Hi,
    I have to make a PDF report with text box,radio buttons and combo boxes.
    The data in the text box will populate from the data base table.
    Similarly the radion button will enable the particular radio button from  a set of available radion buttons as per the value from the database.
    Same with combo boxes.
    The report putput should come in PDF.
    Thanks

    Hi,
    The report sud be pdf output with details like name of person showing in textbox ,then there will be list of radio buttons out of which particular radio button will be checked  as per the option for that particular person in the database.same with combox with for example A,B,C option from the look up is coming but it will be showing the option as per the name of person.We can take the name of person as the primary key.
    The Problem with input controls is that they can be used to filter the report as radio buttons and combo box but they can't be sown in the report itself.

  • 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

  • Deleted messages from in box and sent box do not appear in trash

    For years deleted messages from my in box and sent box appeared in the trash where I would hold them for a week or two just in case I had to retrieve a message I had deleted. About 6 months ago deleted messages stopped showing up in the trash. What do I do to get deleted messages to once again appear in the trash? I'm no computer geek... please be gentle with any suggestions. Thank You.
    Ron Mabey

    While trying to find a solution, I am discovering my mail problem is much deeper than just messages not appearing in the "Sent" mailbox.  I have found some of them appearing in the "Trash" mailbox and some appearing there mulitple times, often with my account name in the "TO" field.  I'm also finding some unread mail there that should be in the "Junk" mailbox.  So it would appear there are many problems with ISO 7 and mail.  I have tried deleting and restablishing the account and two complete iPhone restores.  Neither helped. What is the biggest puzzle is that on my second iPhone, the one that upgraded without an error, mail is working perfectly well.  Has anyone found a solution to any mail problems on ISO 7 devices?  If so, please reply.  

  • Is this a known problem - Panel text and combo boxes not repainting completely when scrolling in IE?

    Looking for any insight as to what might be going on.  Would appreciate any info if anyone knows about this or similar problems..
    I have a panel with 18 children - text and combo boxes - that does not repaing correctly in IE when scrolling vertically.  The 18 children do not fit in the panel, so a vertical scroll bar appears.  The scroll works perfectly when i run through FireFox.  But it does not work in IE in this case.  The child controls appear as painted over parts of other controls.
    thx.

    Wow ...  wow...  Magic.  Your last suggestion of removing the wmode attribute worked.  The page looks great.  The scroll works flawlessly where before it mangled the child controls on the page making it look like a hurricane scene.
    The html was originally set with wmode as "opaque".  I tried changing it to "transparent" after your first response, but this made no difference.  What fixed the problem was removing the wmode attribute altogether.
    We've built a rather large application.  Is there anything we need to be aware of, or anything we need to look out for by removing the wmode setting?
    Thanks much.

  • Removing Music Box and Video Box Queue from Safari Window tab

    Hi,
    I  had  earlier  installed  two  applications  :  Music  Box  and  Video  Box.
    Since  I  don't  use  them  often  I  removed  them  from  my  Macbook.
    But  after  removing  these  applications,  I  noticed  two  of  these  Annoying  options
    on  Safari > Window  tab  (toolbar).
    Any  ideas  of  removing  them ?  Altough  they  don't  affect  my  system;  it  really  isn't  nice  to  see  them
    there  as  the  applications  itself  is  gone.
    Thanks.

    Did those applications come with an uninstaller? If so, did you use it to uninstall the apps?
    If you did, please let the developer know that their uninstaller didn't work.
    If they didn't provide an uninstaller, send a nasty-gram asking them to please do in the future.
    I'm not familiar with those programs and don't know where something might install in order to alter the app like that except the Safari Extensions which you can access from the Safari Preferences.

  • Removing Music Box and Video Box Queue from Safari (Window) toolbar

    Hi,
    I  had   installed  two  applications  :  Music  Box  and  Video  Box.
    Since  I  don't  use  them  often  I  removed  them  (uninstalled)  from  my  Macbook.
    But  after  removing  these  applications,  I  noticed  two  of  two  options
    on  Safari > Window  tab  (toolbar)  called  Musicbox  Queue  and  Videobox  Queue.
    Any  ideas  of  removing  them ?  Altough  they  don't  affect  my  system;  it  really  isn't  nice  to  see  them
    there  as  the  applications  itself  is  gone.
    Thanks.

    Did those applications come with an uninstaller? If so, did you use it to uninstall the apps?
    If you did, please let the developer know that their uninstaller didn't work.
    If they didn't provide an uninstaller, send a nasty-gram asking them to please do in the future.
    I'm not familiar with those programs and don't know where something might install in order to alter the app like that except the Safari Extensions which you can access from the Safari Preferences.

  • Display data in list and combo box

    hi all....
    how to display data from database in list and combo box? i use MYSQL...
    help me please..... tq...

    1 - Write a query to retrieve the data you want from database
    2 - In a servlet, connect to database, Run the query, scroll through the result set and put the data into a list of Java Objects.
    3 - Set a request/session attribute of that list of objects
    4 - Forward to JSP
    5 - In JSP, create a <select> box, and then use a <c:forEach> loop to generate <option> tags from the list.

  • I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    I want to change the size and color of text in call out boxes and text boxes. How can I do this? Jack

    Highlite the text inside the text box and then press Ctrl+E.

Maybe you are looking for