Can't seem to load correct calculation on the option button

Hi all

Its a long time since I cut all code and need help with this question that I hope will help me other fields I'm calculating.

So I use Acrobat X Pro, I'm new on so I have two radio buttons with the same name auth, but the choice of Yes and no; the Yes option button is the default.

I have a read only area I want to maintain the value based on simple logic, if yes is clicked, then set a value of 350 set the value to 0

I walked into the Javascript code within the custom calculation script

var Field1 = this.getField("auth").value;

If (field1 = "Yes") {event.value = "350";

} else event.value = "0";

When I test this the calculated field is STILL 350 regardless of the selected option button...

someone tell me why? or especially how to fix it.

Thank you

George

You have made the classic mistake of using the assignment operator 'is', where

You should use the 'is' operator comparison in the if statement.

Tags: Acrobat

Similar Questions

  • I downloaded a file, but I can't seem to play when I hit the play button.

    What I have to do. I closed and reopened the case several times with the same problem, it won't play.

    Other files play well or do things you know worked previously also not play when you press the button?

    If this is the case, the problem will be that hearing has lost touch with the audio device you have set for reading.  Go on Edition/Preferences/Audio hardware and set the device class for the type of pilot - probably your interface uses ASIO only a specialist one, or even if you use just the built in on your computer.  Then, go to the drop down menu to playback devices and select your sound card desired among the options on the list.  If the device does not appear on the list, you need to go to the menu of audio control for your operating system (Windows Audio control for Windows or the equivalent on Mac OS and re - select your interface as the default device.

    If however the other files play, chances are the header on the downloaded file is corrupt and does not give the information appropriate for the file.  It might be useful to re - download the file if the corruption happened on download, or else perhaps to analyze the file with something like «Identifier of Portable Audio»  If this is a .wav file, you can try to use the file/import/Raw data and play with the settings... even if it can take forever, if you don't have a good idea of the type of file.

  • Am trying to re - install Acrobat 9 Pro (includes the Distiller) after installing a new hard drive. iMac 27 "2009, ElCapitan 11.11.6. I have the original dmg file. also have trid copying from back up. It seems to load correctly. When open ask for my pa

    Am trying to re - install Acrobat 9 Pro (includes the Distiller) after installing a new hard drive. iMac 27 "2009, ElCapitan 11.11.6. I have the original dmg file. have also tried copying from back up. Same thing is happening anyway. It seems to load correctly. When open it asks my password but not to its own serial number. It is open, but don't watch not at the full bar at the top, that the word Acrobat, and it does nothing? Worked very well before the old drive crashing. On the same operating system?

    Not compatible does not mean that it cannot work (even if sometimes this does not mean that). This means that it has never been tested and not be fixed; This often means people have seen strange and unpredictable issues.

    Acrobat makes changes to the system, it is always more vulnerable. DC Acribat is the current version. If the goal is to slow down completely, perhaps more profitable subscription activity.

  • I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when it is inserted and

    I am creating a stamp of Certification of drawing dynamic shop with fields of text 'Name' and 'Date '. I tried different ways within Javascript, but I can't seem to make it work. The Date and time remains static on the stamp when inserted and always reflect when the stamp was created and the name is always my name. I try to have the user name or the username inserted so that he who is the insertion of the postmark of the stamp automatically inserts their name and what day and time the stap is inserted. I can't get this dynamic stamp works like the default Adobe Acrobat Dynamic stamps. Can anyone help with this one. Thank you

    Have you created a page template for your stamp? Did name the template of the page correctly? It's the right format:

    #InternalStampName = display name of stamp

  • I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    Hello
    I can't seem to open additional tabs with the +, the drop down menu, or T command? Is this a bug or am I missing something?

    I use Firefox 30.0 in OS 10.8.5 on a Mac Book Pro with the Intel Core i7 2.7 GHz and 1333 MHz DDR3 8 GB memory.

    Thanks in advance,
    Pat

    You have a "Community Toolbar" extension installed? Which has been reported by other users of Mac as affecting the new tab feature in Firefox 30.

  • I reset my Apple Watch and I can no longer use it, whenever I press the power button, it gives me the sign of loading

    I reset my Apple Watch and I can no longer use it, whenever I press the power button, it gives me the sign of loading

    Hello

    Try restarting your watch force: press and hold the side button and the digital Crown for about 10 seconds, until you see the Apple logo.

  • "No access to the network" problem in Windows 7 and error message "your computer seems to be correctly configured but the device or resource (DNS SERVER) is not responding."

    Hello, I have a desktop PC and a laptop (DELL Inspiron N-4050).
    I have problem with my internet connection cable which is working fine on my PC, but does not not on my laptop giving an error "no access to the network.

    When I troubleshoot it says "your computer seems to be correctly configured but the device or resource (DNS SERVER) is not responding."
    I said to many technicians of microsoft online response, but they could not solve my problem and said this is my DNS problem and advised me to contact my Internet service provider. Guess it's because of my internet so why it works on my PC not on laptop?

    Yesterday, my ethernet cable pulled out my cell phone and I couldn't connect to the internet more. But on my desktop PC, it works perfectly fine. (I do not use wifi, if this information is also required) I have studied several threads with similar situations, and I have tried different methods to solve the problem to no avail. I did a system restore, but I'm having no luck. Also, I did not of the latest changes with my anti virus software and my LAN card drivers look to date.

    When I remove my cable from the laptop and again connect my cable then it works but only after the PC sat for awhile.
    1.I did flush DNS by typing "ipconfig/flushdns" in the command prompt.
    2. my IP address, DNS, subnet mask etc are set to automatic.
    3.I also added physical address taken from command line giving "ipconfig/all". for the properties of the network driver settings.
    4.I ' installed the drivers to date of 2014 on my laptop.
    5.I did a lot of searching the web, but they do not solve my problem.

    Please help me to solve it.
    I appreciate your help.
    Thank you.

    Hello Hall,

    Please keep us updated on the status of the issue.

    I suggest you to follow the steps in this Microsoft article troubleshooting and check if it helps:

    Error message "your computer seems to be configured correctly, but the device or resource (DNS server) is not responding" in Windows 7

    http://support.Microsoft.com/kb/2779064/en-us

    Hope the helps of information.

    Please reply with the results, in order to help you solve the problem.

    Thank you

  • I have 3 radio button options to choose, but I want only a certain one for calculating sales tax. How can I assign a calculation to an option button?

    I have 3 radio button options to choose, but I want only a certain one for calculating sales tax. How can I assign a calculation to an option button?

    Ok. Let's say the name of the radio button group is "Radio1", the value of exports in this field is '3', the name of the subtotal is "Subtotal" and tax rate is 16%. You can use this code as the custom calculation of the tax field script:

    Event.Value = (this.getField("Radio1").valueAsString == "3")? Number (this.getField("Subtotal").valueAsString) * 0.16: 0;

  • I can't seem to install indesign, get me the following message: no application is configured pour open URL, what to do? Thank you pour your help!

    I can't seem to install indesign, get me the following message: "no application is configured to open URL", what to do? Thank you pour your help!

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.

    http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html

  • I can't start with Satellite P10 by pressing the power button more

    I can't start my Satellite P10 by pressing the power button more.
    Sometimes, very rarely its starts when I hold the power button for a while say 10 seconds.

    I tested the power supply and a battery to my friends P10 (of the same type) and both work very well.

    So it must be a problem with the key.
    No idea what to do?

    Thanks for any help

    The best.

    Tobias

    If it s a button or a power supply electronic problem, then you can't do anything.
    In this case assistance by the technicians of laptop would be necessary.

    But the next time that you should try this option if the laptop turns on not;
    Remove the battery and unplug the AC adapter from the laptop for about 30 min.

    After this short period of time to reconnect the two parts and check if the laptop could start.

    Good luck

  • Hi, when I click on the blue arrow on my widget options, its not letting me see everything cos its too big. and I can't scroll upwards or downwards to see the options. It might be a resolution problem do not know. Help.

    Hi, when I click on the blue arrow on my widget options, its not letting me see everything cos its too big. and I can't scroll upwards or downwards to see the options. It might be a resolution problem do not know. Help.

    Hello

    Have you tried to rename the folder Preferences for Muse.

    Nearby Muse > GB appdada % in windows explore > rename the folder named as com.adobe.AdobeMuseCC.2014.3 in com.adobe.AdobeMuseCC.2014.3_old.

    Concerning

    Vivek

  • i can't seem to burn my pictures from the pc to a disk which is false. It maintains reject any type of disc i use thanks

    I can't seem to burn photos from my computer on disc I havr tried to use each kind, nothing works hel; p

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD

    Burn a CD or DVD

    http://Windows.Microsoft.com/en-us/Windows-Vista/disc-burning-frequently-asked-questions

    Disc burning: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/which-CD-or-DVD-format-should-I-use

    Should which CD or DVD format I use?

    Read the information above.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to use windows scan with the new canon printer is connected and the copy and printing, but can't seem to be able to use the technique of scan windows

    How to use windows scan with my new canon MX 922 printer.  It is conncected and copying and printing but can't seem to use the windows scan option, the cannon that which for me is slow thanks

    All in one, type printers (print, copy, scan) usually have a very specific set of instructions during the installation.  If not followed exactly the probability is that the scanner will not work.

    Canon: http://www.usa.canon.com/cusa/consumer

    Download and read the Setup instructions for your model, have you followed the instructions exactly, more precisely when to connect the printer / scanner during installation of the software process?

    J W Stuart: http://www.pagestart.com

  • Can't seem to be able to change the size of font statictext

    Help out me here. I can't be able to apply a font size larger for a multiline statictext object.

    Here's the javascript function, which seems to work fine, except to interact with the font properties. I want to use the default font, but he wants a little bigger and points bonus - "BOLD". I myself just bigger.

    TIA

    function message_dialog(message) {
      //The dialog which displays a message and can also terminate the script
      var the_dialog = new Window('dialog', 'SuperDuper Find Change'); //Make the window
      the_dialog.alignChildren = 'fill'; // Make sure the child object have 100% width
      the_dialog.orientation = 'row';
      the_dialog.alignChildren = 'top';
      the_message_group = the_dialog.add('group');
      the_message_group.orientation = 'column';
      the_message_group.alignChildren = 'left';
      the_message_group.preferredSize.width = 300;
      the_message_group.margins = 4; //Set the area around the children.
      //Create a container for the message.
      st_message = the_message_group.add('statictext', undefined, message, {multiline:true});
      st_message.characters = 35; // WARNING: do not hit st.preferredSize before you set the characters property! 
    /** --- @TODO  The font change below appears to have no affect ---**/
      st_message.graphics.font =  'dialog:21';
      //Add the Okay button
      the_button_group = the_dialog.add('group');
      the_button_group.alignment = 'right';
      the_button_group.alignment = 'top';
      the_button_group.add("button", undefined, "OK");
      the_dialog.show();
    } //End message_dialog function
    

    CC and later, you can not change the appearance of the text in the controls.

  • Can't seem to crop, and then save the cultures - and - undo levels

    Hello.  I used Corel Photo-Paint for many years, but now jump to PSCC.  It's much better in many ways, but I'm still trying to find my way around it.  A simple thing that I can't seem to know is how to crop an image and keep it cropped.  I want to say is, I have an image open, then with the crop tool I crop to get a smaller size.  But when I try to select the (smaller) image to be dragged onto another open image, it then selects the original image everything.  I checked the box for 'remove the trimming pixels'.  The same thing happens if I save the cropped image, then open it again... the complete original image size is still there, although it only shows the cropped section.  What do I need to do differently?  It seems to me that what I get is the effect if I unchecked "Delete cropped pixels ', but I certainly have that checked.

    Also, is there a way to increase the number of undo levels?  I get only one.

    Thank you!

    Hmm wait, if I click on the part square info from the layer, it is said "vignette of the smart object", so I guess it's a dynamic object.  Don't know why it would give me the opportunity to "convert to smart object" but anyway...  Well, that solves it.

Maybe you are looking for