Turn on the border of the text field only when the content is entered

Hello

Can someone tell me a method to achieve the following objectives:

Using LiveCycle ES2, I want to set some text to have no default border fields.

When the user enters text into a field in the finished form, I want to turn on a border for this field.

When there is no text in this field, I want to turn off the border.

Is this possible? If Yes, are there any suggestions?

Thank you!

Just put in the output of the textfield event (in formcalc):

If ($.isNull == 0) then

$. border.edge.presence = "visible".

else $. border.edge.presence = "hidden".

endif

Tags: Adobe LiveCycle

Similar Questions

  • Format custom text field only when the field is filled

    I have created a form that I need to have the format of a text field "model:"& value of text field, then when it is empty so it is just empty.»

    I put event.value = "template:" + event.value; "." in the format custom properties of the text field it set to format correctly, but if it had not entered in this field he said always model: so what should I do for it to be only occur when there is something entered in the field.

    Change to:

    If (event.value) event.value = "template:"+ event.value; ".

  • Expand text fields, only when printing

    All,

    I have a dynamic form that includes several text fields for user input. These fields have a fixed height, however, allow multiple lines beyond the visible area. I don't want these fields to develop when you leave the field, but when the form is printed. The form is set up neatly on 7 pages, and I would that this still 7 when the user is working, however, I would like to expand to account for the extra text to print.

    How can I make sure when I print, expand the fields and the data flow on the next pages?

    Thank you!

    Aaron

    There may be a better way, but when I need to position elements in a past form I use rectangles set no border so that they are invisible and put where I need spaces.

  • With the help of javascript code to validate content in the text field only if the field is visible...

    I have a "Lock of all areas" set up button and it took to run only if some fields are filled. The code works fine... except TextField13 does not validate correctly. TextField13 is encapsulated in a subform, titled busjus. The busjus subform is hidden at the disposal of the default form (it becomes visible only when a user selects some text in a drop-down list). I want the code to check if TextField13 is null only if the busjus subform is visible.

    The problematic part of the code that does not work as expected is listed below:

    partiv.nonflow.busjus.presence == visible) && partiv.nonflow.busjus.TextField13 == null ||  

    Complete code is listed below:

    if(partiandii.parti.TextField2.rawValue == null || 
    partiandii.parti.TextField1.rawValue == null || 
    partiandii.parti.DropDownList5.rawValue == null ||
    //Part II: Current Job Details
    partiv.nonflow.busjus.presence == visible) && partiv.nonflow.busjus.TextField13 == null ||  
    partiandii.partii.NumericField2.rawValue == null ||)
    {
        app.alert('Please complete all fields marked with a red asterisk and try clicking the button again.');   
    }
    else {
        myScriptObject.LockAllFields(form1);
    }
    

    Hello

    At a glance, I believe that this piece must include the rawValue call

    partiv.nonflow.busjus.TextField13
    

    This should be

    partiv.nonflow.busjus.TextField13.rawValue

    so that you compare the text in the field instead of the actual field object.

    Hope this helps

    Malcolm

  • Displaying the time in the Date fields only when it is available

    Is it possible to display the component "hour" of a field of date only when the component "hour" is available? I know that the default behavior of not showing the component "hour" of the date fields can be changed by setting the date format NLS in the preferences to include the time as well. However, what causes the fields without component to appear with zeros. (For example: If nls date format is DD-MON-RRRR HH24:MI:SS, a date with no field component "time" will appear as * 1 January 2008 00:00:00 *). It is a configurable option in Quest SQL Navigator, with 3 options available, that says "(afficher l'heure dans les champs date: a) (never, (b) when available or c) always, who miss me dearly in SQL Developer."

    Thanks in advance for your suggestions,
    KLS.

    No, but you can vote on the feature to http://htmldb.oracle.com/pls/otn/f?p=42626:39:4403831115154402:NO:P39_ID:16221 request to add weight to implementations in a future version.

    Kind regards
    K.

  • How to make a text field so that if a user enters a lower case A, we make a capital?

    Hello

    We have a text field in one of our screens in the blackberry application.

    We have created the custom text filter so that the user can enter only the letters 'A' and the numbers in the text field. Now we need if the user enters 'a', we need to change it to 'A'.

    How can we achieve this?

    Thank you.

    Hi all

    I tried the following code and it worked.

    public char convert(char character, int status) {
        // TODO Auto-generated method stub
        if (!validate(character)) {
            return 0;
        }
        if (character == 'a') {
            return 'A';
        } else
            return character;
    }
    
  • Text field validating this date has been entered - using Acrobat Pro

    I created a PDF form and need a text field which I formatted to a date field to validate if a date has been entered. For example if I have tab on this area and there are no registration, I want an alert to be produced by telling the user that the field is in need of a date is valid. Thank you

    Figured it out.

    onBlur for this area, I used:

    If {(lastValueInvalid)
    Event.Target.Value = "";
    lastValueInvalid = false;
    }

    If (event.value == "") {}
    App.Alert ("required field (cannot be empty): Please enter a valid Date of decision (example: 03/04/2015) ');
    }

    Then I added under the Javascript:

    lastValueInvalid = false;

    function FCDate_Keystroke (errorMessage, format)

    {

    var value = AFMergeChange (event);

    If (! value)

    return;

    If (event.willCommit)

    {

    var date = AFParseDateEx (event.value, format);

    If (! date)

    {

    FieldValidationPending = true;

    lastValueInvalid = true;

    If (! event.silenceErrors)

    App.Alert (ErrorMessage);

    } else {}

    FieldValidationPending = false;

    lastValueInvalid = false;

    }

    }

    on the other

    {

    If (!.) FC_DATE_KEYSTROKE_RE.test (value))

    {

    App.Beep (0);

    Event.RC = false;

    }

    }

    }

  • Text field overprinted when you print - properties look OK - help

    I have a problem with a text field in a form that I created using Acrobat X Pro on a PC running Windows 7 Ultimate.

    Document was created originally in MS Word 2007 and then convert to the form using the form wizard.  I have the selected font like helvetica auto-size, but the problem exists even if I change the font size of 10 or 12.  In the text properties everything looks OK.

    The form looks fine on the screen, but when I go to print the text either does not the length of the field and seems to be all scrunched up with overlapping letters, as if there is no space kerning between letters.

    First screenshot is of the screen display.  It seems.   Second screenshot, this is what is looks like print.   Note, this is not a problem with my HP printer, as happens even when I print to PDF.

    Help!

    Thank you

    Peter

    On Screen View.JPGPrinted Version.JPG

    I downloaded your file and you have more than one field duplicate a heap cells.

    Go back to Acrobat > forms > change

    Click on each field.  to the right in the list of registered names, you will see something like name 0 #, 1 # name and so on

    remove all duplicates except one named #0 name (the name will change automatically to the name only) most of the fields on the page 1 and 2 have been reproduced.

    It shows like shadows, it's fields are not perfectly aligned.

  • filler text field automatically when a certain selection of radiobutton is made (and no is selected)

    Hello world

    Forgive my ignorance, as I am a noob on javascript. I need help on the creation of automation on the text field, and I hope you can give me a hand.

    This is the scenario

    a radiobutton is created with the following options:

    1-10

    11-20

    21-30

    31-40

    41-50

    51-60

    I need auto-fill, a text field when:

    '1-10' is selected with 'too low '.

    "11-20" is selected with 'so so '.

    '41-50' is selected with "awsome".

    '51-60' is selected with 'to high '.

    and when

    "31-40" is selected with nothing

    and no is selected with "select one please".

    Thanks in advance

    That's ok. In this case, you can use something like that than the calculation script custom of your text field:

    var v = this.getField("Radio1").value;

    If (v is 'Off') event.value = "SΘlectionner one if you please."

    else if (v == '1-10') event.value = "too weak."

    else if (v == "11-20") event.value = "So so";

    continue with the rest of the possible values in this way...

  • Lock text fields only if they are filled at

    Hello all and thanks in advance for your help!

    My Question:

    When I click on a button (btnLockFields), I would block only text fields that have the actual text in their filled. The same text fields are met every time, so it must be flexible. Before blocking text fields, I need to be prompted to enter a password. I will send this form to others so I need the password button to keep other users fixed.

    I'll put form security so that others with Adobe Acrobat does not mess with the form.

    Is this possible to do? Thanks again!

    I've seen this post but it works for specific areas, unless there is a way to fix the code works with what I need:

    http://forums.Adobe.com/message/4695376

    OK, you can try something like the following, but I have not tested. It is intended to be used in a bookmark and don't try to unlock after that that they have been locked:

    Lock all the non-empty fields

    (function () {}

    Your chosen password goes here

    var pw = "1234";

    Ask the user the password

    Var RESP = app.response({)

    cQuestion: "to lock the non-empty fields, enter the password:",

    CTitre: "password",

    bPassword: true,

    cLabel: 'password '.

    });

    switch (RESP) {}

    case pw:

    Scour the fields and lock boxes and non-empty text fields

    for (var i = 0; i)< numfields;="" i++)="">

    var fName = getNthFieldName (i);

    var f = getField (fName);

    If (f.type = "checkbox" & f.value! == 'Off') {}

    f.ReadOnly = true;

    }

    If (f.type = 'text' & f.valueAsString) {}

    f.ReadOnly = true;

    }

    }

    App.Alert ("the fields are now locked.", 3);

    break;

    zero case: / / the user pressed the Cancel button

    break;

    default: / / wrong password

    App.Alert ("bad password.", 1);

    break;

    }

    })();

  • Change the border color of text field based on a value from the drop-down list

    I have a dropdown menu with 4 choices of priority for maintenance.  With a javascript script, I need to be able to select a 'priority' in a list box and a text box border then color with an appropriate color.

    'High priority' with an export value of 0

    "Medium priority" with a value of exports of 1

    'Low priority' of an export value of 2

    "When the time allowed" with a value of exports of 3

    When one of these selections has been filed, a text box becomes available in order to write the gap. My goal is as follows.

    When "High priority" is selected, the border of the text box where you write the gap would blush.

    When "Moderately urgent" is checked, the border around the text box where you write the gap would turn yellow.

    When "Low Priority" is checked, the border of the text box where you write the gap would become green.

    When "when she allows" is checked, the border around the text box where you write the gap would have turned blue.

    Otherwise, the border would be white.

    This form will be used ultimately on an iPad using Expert PDF under the player.     I use Acrobat X to create the form.

    Any help would be appreciated.

    Yes, I accidentally left a hug. I can fix it so it won't be a problem if someone tries to use it. Happy that you guessed it work.

    To handle resetting, you can use a script to validate drop-down list:

    Script to Validate drop-down list

    If (event.value = "" "") {}

    getField("discrepancy_1").strokeColor = color.white;

    }

  • Is the uiscrollbar component for use with the text fields only

    Is the uiscrollbar component for text only fields?

    Yes, this isn't in the library, you must call using code.  It is documented in the help files, even if, which should help to get you into use.

  • Validation of required field only when the page loads (HR test case!) included

    Hi experts,


    Here you have a simple test for Jdev 12.1.3 HR case: https://dl.dropboxusercontent.com/u/18609389/TestHR.zip

    The main.jspx is just a button which CreateInsert a record dept displayed in another page:

    Screen Shot 10-16-14 at 07.04 PM.PNG

    My problem is the following page (test.jspx) has this code to run when the page loads:

    <af:serverListener type="onloadEvent" method="#{backingBeanScope.backinBean.onPageLoad}"/>
                <af:clientListener method="onLoadClient" type="load"/>
                <af:resource type="javascript">
                  function onLoadClient(event) {
                      AdfCustomEvent.queue(event.getSource(), "onloadEvent", 
                      {
                      },
    false);
                      return true;
                  }
                </af:resource>
    

    The code is simply this (now):

        public void onPageLoad(ClientEvent clientEvent) {
            logger.severe("HR TEST.....");
        }
    

    And that's the problem, required validation is performed.

    Screen Shot 10-16-14 at 07.06 PM.PNG

    Can you tell me why?

    Thank you

    Jose.

    Don't know what is my mistake, but the code is of the actionListener button is not called. :-(

    Well, you combined two different ways to do this (from my first answer).

    If you are still reading this, you will notice "or" before the second suggestion

    Thus,.

    1. keep your clientListener under af:document tag

    2. based on javascript, you find key (use: alert ("button");)  to see if you have referenced correctly your button in findComponentById())

    And then:

    approach 1:

    Use AdfActionEvent.queue (button, true);  queue event on your action button and implement your logic in function attached to the properties of your 'actionListener' or 'action' button (if you don't need listener server in this case)

    approach 2:

    Use AdfCustomEvent.queue (button, "onloadEvent", {}, false);  the queue onloadEvent on your button (in this case you need listener server attached to your button)

    Dario

  • Convert the TEXT field above

    I use APEX5 to maintain a table of database using report/form wizard

    In DML form, I have a few text field.  When 'Submit when you press enter' is defined or not, the calculation of point after the present and upper(:Text_Field) does not work.

    When I changed 'Submit when you press enter' Yes, it works but it submit the Page and I did not complete data entry.

    Am I missing some setting?  I searched the forum, underlined especially html form but I use form DML.

    Thank you, Dorothy

    Dorothy,

    See this example:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:807

    Denes Kubicek

  • The exact text of the text field to another field read-only

    Is there a way to display the string of exact text in the field of text within other text fields read-only?

    For example. I have fields of name on the first page and I have the same names mentioned in the other pages, but want to fill the other pages with the text name of the 1st page.


    Options tab > Default value doesn't seem to work, so maybe I can use calculate tab > simplified field notation.

    I have a domain called "Client_1_Name_Cover" and "Client_2_Name_Cover", so name to bind these two text fields only reading on other pages.

    You can use the validation script custom following in each of the two fields of name on the first page:

    Copy the value of this field in the field read-only

    getField("Client_1_Name_Readonly").value = event.value;

    but you must replace 'Client_1_Name_Readonly' with the actual name of the field read-only.

Maybe you are looking for