Make a zone of necessary text using conditional formulas

Can what code I use to make a required text based on conditional logic box? For example, I have a currency type and dollar amount. One of my logical arguments would be: "If the currency is the PLN and the amount is greater than or equal to 50,000, check this text box a required field.» In otherwise, make this hidden field.

Since it depends on two fields you will be needing to apply a script for both these fields, or (maybe a better option) use custom calculation event of a field in hidden text to check the two fields and then change the third.

The code should look like this:

var f = this.getField("Text1"); // Replace with actual field name
if (this.getField("Currency").value=="PLN" && Number(this.getField("Amount").value)>=50000) {
    f.display = display.visible;
    f.required = true;
} else {
    f.display = display.hidden;
    f.required = false;
    f.value = "";
}

Tags: Acrobat

Similar Questions

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • Books of fusion and OCD using conditional text

    Hi all

    I'm trying to merge four books with similar content in one book by using conditional text.

    Instead of going to and comparing the three output files (pdf) one by one, I went through and tried to compare the documents/chapters in each book one by one. I applied the conditions for text added or deleted accordingly (it was a shortcut, and I know, not really advisable). But the problem I am facing now is that the table of contents do not work, if I try the technique of comparison.

    My question is, are at - it another way to merge several books and their tables of contents in one only book and table of contents, other than each chapter line-by-line reading and apply conditional text tags to associated content?

    Any help would be appreciated!

    Thank you

    RG

    Post edited by: Rashmi gourn Hello... anyone? No help is available for conditional tagging in Framemaker, AFAIK. Wait for some sort of answer from the experts here... Kind regards

    Simply create a new book file that contains all the files (with the exception of the generated - including the table of contents). Then create the appropriate - including the TOC generated files. You can import the existing formatting from the relevant files generated in an other books.

  • text using the map on the part of sharing

    Hello

    I want to share some text using the map on the part

    but I am facing a problem

    I have a list view, after loading data to the listview, I'm to that data to a property and then passing data for sharing

    but unable to see the data, but if the text of a label, I can see this text

     ListView {
    
                    id: myListView1
                    property string p_sharing : ""
                    dataModel: dataModel1
    
                    // Use a ListItemComponent to determine which property in the
                    // data model is displayed for each list item
                    listItemComponents: [
                        ListItemComponent {
                            id: listiemm
                            type: "item"
    
                            Container {
                            //    property real p_font_size: 10
                                id:mainlist
    
                                rightPadding: 20
                                leftPadding: 20
                                horizontalAlignment: HorizontalAlignment.Center
                                verticalAlignment: VerticalAlignment.Center
                                layout: StackLayout {
                                    orientation: LayoutOrientation.TopToBottom
    
                                }
    
                                 Label {
                                    id: title
                                    horizontalAlignment: HorizontalAlignment.Right
                                    verticalAlignment: VerticalAlignment.Top
                                   text: ListItemData.title
                                    multiline: true
                                    onTextChanged: {
                                        mainlist.ListItem.view.p_sharing =title.text
                                        console.log("news Title label --->"+ mainlist.ListItem.view.p_sharing)
                                    }
                                }
                                }
    

    outside the list, I have my share button and a label

      ImageButton {
    
                        id: btnshare1
                        onClicked: {
                            share1.trigger("bb.action.SHARE")
    
                        }
    
                        attachedObjects: [
                            Invocation {
                                id: share1
    
                                query {
    
                                    mimeType: "text/plain; charset=utf-8"
                                    invokeActionId: "bb.action.SHARE"
                                    data: ss1.encodeQString(myListView1.p_sharing) ;
                                 //   data:myListView1.p_sharing
                                }
    
                            }
    
                        ]
                        defaultImageSource: "asset:///images/list.png"
                        pressedImageSource: "asset:///images/list.png"
                        disabledImageSource: "asset:///images/list.png"
    
                    }
                    attachedObjects: [
    
                        WebImageView {
                            id: ss1
                        }
                    ]
    

    and here is the label

    Label {
                    id: lbl
                    text:"abc"+ myListView1.p_sharing
    
                    horizontalAlignment: HorizontalAlignment.Center
                }
    

    I can see the value of the property in the label, but you see is not the text in the map sharing

    any help?

    TheMarco has published a tutorial on how to make this a few months back

    https://forrst.com/posts/Adding_Social_Sharing_through_Invocation_to_your-FMZ

  • The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem

    The pdf I want to change has all embedded fonts.  When I try to insert a comma, I get the message, "all or part of the selection has no available system fonts.» Cannot add or remove text using the selected font. "Will I still have this problem if I'm updating from Acrobat X?

    You have the fonts installed in the system. This has not changed. (Having the police is not always enough, but it is certainly necessary).

  • Text field that supports rich text using the script edition

    I have a text field with rich text format format. I need to add a new line character, if the length of a sentence longer than 65 characters. When I change the text using javascript formatting breaks and the signature event will fail eventually. Is it possible to change the body of the value of the text field? I realized that the value store in text/html.

    Examples:

    Before change:

    "< txtOtherDocuments > < body xmlns ="http://www.w3.org/1999/xhtml"xfa:APIVersion ="Acroform:2.7.0.0"xfa:spec ="2.1">"

    < style p = "margin-top: 0pt;" margin-bottom: 0pt; do-family: Arial; font-size: 8 pt. "text-decoration: no" > Test data < /p > < / body >

    Field.rawValue using = «...» "fails. Y at - it a different set of commands?

    Help, please.

    Thank you

    If you want to access the data and style in a field richtext, you must use the command Fieldname.value.exData.saveXML ("pretty"). This will give you the xHTML data format. Then you can manipulate the data in the way that you want, and to get it back in the field, use the Fieldname.value.exData.loadXML ("xml to load", parm1, parm2). The parms are Boolean values that control whether to replace or add the XML to the existing xml. See the reference for script/help for a more detailed description.

    Note that it won't be easy if there is a lot of rich text in your field that the text will be spread between tags. You may need to use the rawValue (no formatting to find out where to put the CR then find in the HTML code and it add.)

    Make sense?

    Paul

  • I found that if it becomes necessary to use time machine to return to an earlier existence to reinstall the iphoto library, if for some reason, you lose lose, then when you try to synchronize your ipad is not recognized by the computer.  As one

    I found that if it becomes necessary to use time machine to return to an earlier existence to reinstall the iphoto library, if for some reason, you lose lose, then when you try to synchronize your ipad is not recognized by the computer.  So when you try to synchronize the pictures, they are all removed from the ipad and trying to reinstall everything again.

    This may or may not work immediately.  In my case, only half the photos have been installed, and then the error message came that the rest of 9000 can be installed.

    I contacted Apple support team who has made various suggestions.  Subsequently clicking on a photo list in iTunes were all going again and pictures of 9000 then installed.  When I asked the support team what could happen I was told that it was a "glitch".  I don't like seeds they mean that there could be an error in coding somewhere.

    Here me again.  I use an iMac and iPad.  I don't know why XP and iPhone came.

  • Is it necessary to use separate external hard drive or external hard drive new or freshly formatted for backup time machine.

    Is it necessary to use separate external hard drive or external hard drive new or freshly formatted for backup time machine.

    Both fresh and freshly, can use as a Time Machine backup HARD drive, although I personally prefer to use newly formatted disk.

  • I need to replace a string in a text using BACK file.

    I need to replace a string in a text using BACK file. I can't do it manually because the file size is about 2 GB. Please suggest me a solution. Thanks in advance.

    Hi ArunVL,

    See the Microsoft article below and check if it helps.

    With the help of MS-DOS Edlin utility to edit text files

    http://support.Microsoft.com/kb/67706

  • How to make a request on a URL using webworks development environment?

    Hey geeks,


    How to make a request on a URL using webworks development environment?


    Thanks in advance...!

    "A request for a url" you try to perform an ajax call and it does not work? Any field/origin you're wanting access must be white listed in a element in the config.xml file. Details of this are in the WebWorks development guide

  • BlackBerry smartphones highlight text using os 6 on pearl 9105

    I have just to improve my 9105 OS 5 OS 6

    but I have found a problem I can't highlight text using shift + paved

    can someone help me?

    He has not supported for Chinese input, but I don't remember with certainty that it was that.

  • Beyond a simple text on the Clipboard in the text using the key field

    Dears

    You would tell me is it possible of past a simple text on the Clipboard into a field of text using button with javascript or something else?

    What is my problem?

    I have prepared a simple form using adobe acrobat dc. This form will be used in the local network. so, we can open the form of google chrome. There is a large text field in this form and we have passed the text to the Clipboard in there.

    normal, when we are using adobe acrobat to open the form, it is easy to right click and select "PASTE". but we need open the form using google chrome. in this case, no item to paste from the Clipboard.

    Please help me.

    Concerning

    In General, no, it's not possible.

    However, if you apply a certain change in the registry then work could . I told you how do it here: paste it from the Clipboard text box in form

  • If we are in CC, can we give older PS and LR programs on disks and make sure that they can be used by someone else?

    If we are in CC, can we give older PS and LR programs on disks and make sure that they can be used by someone else?

    Gloria

    Transfer (sale of your software) https://forums.adobe.com/thread/1355892

  • My old InDesign installed still work or installation CC InDesign disrupt and make it impossible to see and use the old designs?

    Install the new InDesign Creative cloud will make it impossible to continue to use my old InDesign documents?  An old document InDesign is easily converted to document CC?  Cynthia

    Yes, you can open files created with versions more old, but cannot open files created with newer versions using a version earlier than 1.

    for example, you can open files cs3 in cc.  but cs3, 4 and 5 cannot open files created with cc.  CS6 can open a file from cc (but of course no new cs6 feature will be present/work).

  • How can I make an IOS and ANDROID app using MUSE?

    Hello

    I don't know anything about coding, but I think that you can create something of Muse and use phone gap so that it becomes an iOS or Android app - information on this are extremely rare - I just saw little notes like of course you can, etc. - which is hardly useful - has - that someone has managed to create something and got them published on the plaster application Apple or Google?  If someone has something better away from phone as muse at the possible application router I'd be curious too.

    See you soon

    Yes, you can create an application with Muse. Keep in mind it would be only an information application and contain no feature phone like camera, Geolocation, data, etc.

    So once agin you would be limited to a single application of type information. Another problem with the use of Muse to make an app is this Muse uses fixed width design and dimensionnera therefore not depending on the device. So if you want to be on phones and tablets, you will need to create two versions.

    Phonegap Bulid you would escape using your Muse site (version usually phone except if you change the size of your desktop version) to HTML files and zip then their. With the help of Phonegap Build you would be able to create the files required for submission to the app store (Apple App Store, Google, Amazon, Windows App Store game). You're on a Mac to be able to submit to Apple's App Store. It will work with Muse, but a better solution is to use a service of construction such as the one I've used in the past called AppsZero - Apps to build with zero coding.

    Google and Apple also require paid developer licenses. Apple is $99 / year U.S. and Google when I got mine was one-time fee of $25. You don't know if the Google changed but the Apple, we're still $99 / year.

Maybe you are looking for

  • Black login screen

    When starting, a black login screen prevents my screen 4 K of login in. Computer must be stopped with force and restarted. Memory NVRAM/PRAM resetting has not helped.

  • W500 display stretched after the downgrade to xp

    After that my thinkpad w500 shot several times, I downgraded it to xp. Since then, my screen is stretched horizontally and said for video controller driver is missing. I downloaded here but always the same number of pilots. It's like I just can't fin

  • Digital Photo Professional crash with ntdll.dll

    Digital Photo Professional crash with ntdll.dll Module fault. Error message reads Viewer DPP module has stopped working, and then closes. Failed application DPPViewer.exe, version 3.8.0.0 failing module ntdll.dll, version 6.0.6002.18005 Please please

  • GANYMEDE +.

    Hello I wanted to know someone can tell me what is needed to get GANYMEDE + installed for my network. They used both RADIUS but the server doesn't work so they want to move to something different. I never installed a RADIUS server before so I wanted

  • Partial site-to-site connectivity

    I have configured an Ipsec tunnel to l2l between two devices ASA 5505. Led by the VPN is running on both of the ASA. I can't do a ping from the inside of an ASA inside another ASA and vice versa. But I can't do a ping from the inside of any ASA to a