Validate the digital field - can be 10, 20 or 30

I am using LiveCycle Designer ES (Version 8.2).

I have a numeric field that can hold a 10, 20 or 30. It can also be empty, and I guess, a zero would be nice too.

How can I accomplish this, since I'm a newbie here?

Thanks for the comments.

Hello

If your entry is limited to only 10, 20 or 30, you can use a drop-down list instead of a numeric field.

A drop-down list is good when you want to make sure that only user predefined values input and define the formats and connections.

Implement the items in drop-down list in the object Panel and uncheck the box 'allow cistom entry. Go to the control panel link, and select the checkbox 'specify values. Assign a value of 10 '10', etc.

You will be able to refer to the rawValue of the drop-down list script later, as you would with a numeric field.

If you want to go with the digital field, you can set up a Javascript script in his output event:

If (this.rawValue == 10 | this.rawValue == 20 | this.rawValue == 30)
{
do nothing
}
on the other
{
App.Alert ("invalid data entry: enter 10, 20 or 30");
this.rawValue = null;
}

Good luck

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Connect the digital field with Drop Down

    I have a numeric field for the zip code and a drop for the city.

    I want that when I write the postal code in the numeric field to automatically display the city drop down list.

    And even when I chose to drop down the list then show in the digital field (postcode)

    I have all that in Excel.

    Thank you

    Use dynamic properties.

    Start by importing the xml from your spreadsheet (you're on your own with who) excel. Assuming that each line is a city and a postal code, your xml code will look like this:

    SomeCity

    12345

    .

    .

    .

    (1) in the designer, go to file > new connection of data...

    (2) select the sample XML data and the file in Excel.

    (3) make good properties sure dynamics are enabled, tools > Options > Data Binding > show of dynamic properties.

    (4) select your fall down and open the field in the object Palette tab.

    (5) you will notice that the list items is green and underlined. Select it.

    (6) for items, select the line

    (7) for the text of the item, select the city

    (8) for the value of the item, select the zip code

    You now have your menu dropdown bound to the data in your Excel worksheet.

    Now, just a bit of coding (brace yourself), in the digital realm for your zip code, in the case of output put:

    theDropDown.rawValue = this.rawValue;

    and to theDropDown:

    thePostalCode.rawValue = this.rawValue;

    Now all you have to do is import xml into your form to perform.

    Kyle

  • Validate the Digital Signature has expired

    We are a small and medium-sized companies and have the public keys of our employee in a read-only shared network folder. We use self-signed digital signatures created in Acrobat 9 and X.

    My understanding is that digital signatures expire after 5 years.

    1. How do validate us a document that has been signed, but now that the digital signature has expired?
    2. We need to keep all public keys, including the former expired and newly created versions?
    3. File names are not the same? How to make them in the same folder with identical names?

    You need to keep old certificates expired in Idetities of trust (with public keys only) to be able to validate the signatures signed with these certificates at the signature (the signature creation time). You don't need to keep expired certificates with the private keys.which are the files protected by password on your computer (or in the Windows or Mac keychain certificate store).

  • Validate the text field

    Hello

    One of the column is the editable text field. It should allow only the numeric values + ve and - ve and point example authorized 123.00
    and also the - allowed 123.00. and remove all the other characters.
    I wrote the code following and calling onchage on the text field. But it does no period and values of ve. She accepts only + ve digital raising.

    Please help fix this function. or give me a better solution.
    function checkForNumber(evt) {
        evt = (evt) ? evt : window.event;
        var charCode = (evt.which) ? evt.which : evt.keyCode;
        if (charCode == 46){
          return true;
        }
           if (charCode > 31 && (charCode < 48 || charCode > 57)){
            return false;
        }
        return true;
    }

    Hello

    Try

    function checkForNumber(evt) {
        evt = (evt) ? evt : window.event;
        var charCode = (evt.which) ? evt.which : evt.keyCode;
        if (charCode == 45 || charCode == 46){
          return true;
        }
           if (charCode > 31 && (charCode < 48 || charCode > 57)){
            return false;
        }
        return true;
    }
    

    Kind regards
    Jari

  • The description field can be increased on a layout?

    Hello

    Is it possible to move the position of the description field, layout of account, to above or below a particular section? Is it possible to shorten the length of the text displayed in the description field? (The actual field may be longer and fill the area will be visible when editing of the recording, but observing, it displays a shorter column)

    Kind regards

    Currently, it is not possible to move the Description field of the page layout, and you cannot change the size of this field. I would recommend that you submit a request for service improvement customer CRM On Demand.

  • Change the digital field of legend

    I have a form at least 2 boxes option named type1 and type2 and on 2 different pages 2 fields of digital type NF [0] and NF [1], the binding of NF is global.

    If I select the radiobutton type1 then legend of NF [0] and n [1] should change to 'Type1' and visa versa

    I have the following JavaScript in the change of the radiobuttonlist method:

    if (this.rawValue == 1)

    {

    xfa. Form.Form1.test.nf.Caption.Value.Text.Value = 'type1';

    }

    else if (this.rawValue == 2)

    {

    xfa. Form.Form1.test.nf.Caption.Value.Text.Value = 'type2';

    }

    This changes only the legend of NF [0], how can I change the legend of NF [1]?

    Best wishes

    Simone

    You can change with the names that you have, but the syntax of the expression is quite confusing:

    xfa.resolveNode("xfa.form.form1.test.NF[1]").caption.value.text.value = 'type2 '.

    If you rename the field to a unique name, then you can set it as the first:

    XFA. Form.Form1.test.NFnewName.Caption.Value.Text.Value = 'test2 '.

    Note that you don't need the xfa.form at the beginning of the expression... then to simplify it:

    Form1.test.NFnewName.caption.value.text.value = 'test2 '.

    Paul

  • property of format to the digital field mask

    Hi all. I'm on devsuite 10g.
    I have a little problem with the format of a numeric field mask property.

    I want to display like this:

    3,000,000,000

    But in the format mask property if I put the 9G999G999G990 I got this result:
    3 000 000 000

    I read that I should change the parameter NLS_LANGUAGE but surely, there would be problems with the other columns in the database, such as the columns date, ecc.

    How can apply a mask to format my field to see 3,000,000,000?

    Thank you all for collaboration,
    Fabrizio

    Oh, sorry; You must add it without the quotes:

    NLS_NUMERIC_CHARACTERS=,.
    

    see you soon

  • How to use a script to validate the same field with different addresses in different pages?

    I have a script that is applied to a field 'email '.

    The script asks to check the address, if it is not well written.

    But this field is present in many pages for different guests filling in this information.

    How can I adapt this script? (without changing the name of each field of each page and therefore to change the value in the script to a page that ...)

    function confirm_email_OnValidate (element)

    {

    Event.RC = confirm_email_Validate (Element, event.value);

    }

    function confirm_email_Validate (Element, newvalue)

    {

    If (newvalue.length < = 0)

    Returns true;

    Model = newvalue.replace (/ [a-zA-Z0-9] + ((\.| _ | \-) [a-zA-Z0-9] +) * @([a-zA-Z0-9] +(\.| \-))+[a-za-Z]{2,}/, «»);)

    If (Dummy.length! = 0)

    {

    InputError (element, 'Check this address');

    Returns false;

    }

    Returns true;

    }

    function confirm_email_Format (element)

    {

    Returns true;

    }

    You can use the eMailValidate built-in function to simplify this. For example, you can use the custom following validation script:

    if (event.value && !eMailValidate(event.value)) {
        app.alert("Check this address");
        event.rc = false;
    }
    

    It provides a validation better than the regular expression that you have demonstrated.

    Without knowing how you use the parameter of the element and the operation of the function InputError, it is difficult to offer something more.

  • Problem with the digital field model

    Hello!

    This problem is driving me crazy!...

    I placed a numeric field and used the following model:

    NUM {zzz zzz zzz, zz9.99}

    This field must view and accept with 2 decimal places and in European format floating point numbers.

    The locale by default for this form are the Portuguese (Brazil).

    So... If I type something like 99999, the field correctly 99.999,00.

    Now, if I type 99999.00, once again the field correctly contains 99.999,00.

    However, if I type 99999,00 (with a comma instead of a period, what I need) field contains 0.00.

    Please, thank you very much for all the ideas!

    Marcos

    The result you get is correct, because the boss lets only a time separate decimals.

    Try the following change:

    NUM {zzzzzzzzzzz9, 99}. NUM {zzzzzzzzzzz9.99}

    and this view model:

    NUM {zzz.zzz.zzz.zz9, 99}

  • Add Prifix &amp; Sufix to the digital field

    Dear friend

    I want to change my itemcode list according to category. I want to change the first digit of each code for ex
    This Code 400000473 I want to change to 100000473.

    In all the Code starting with 4 want to change 1.

    Sanjay
    update your_table
    set your_column = '1'||substr(your_column,2)
    where substr(your_column,1,1)='4';
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/02/05/gestione-degli-errori-in-sql-con-log-errors/]

  • Difficulty in getting the number of instances of digital field

    Hello

    I created a form on which a user can add / duplicate the subform.  This subform is located in an another subform.
    THUS, the hierarchy is like:

    1 subform

    2 subform

    Table with fields

    Remove button

    Add button

    Numeric field

    The digital field display the number of instances of subform 2.

    I selected the field and added the code:

    Subform2.instancaManager.count;

    But this does not at all. The field does not appear anything.

    The subform has a minimum number of 1. So in my logic, it should display 1. But I'm not a scripter at all... so frankly I think of her in a bad way.

    Can someone help me get this numeric field to calculate the subform2 instances? In a language dummy please :-)

    Hello

    Since the numeric field is outside Subform1, you have not provided a quite complete reference of the numeric field Subform2. For a description, see here: http://assure.ly/kUP02y.

    It should work in the case of calculating the numeric field:

    this.rawValue = Subform1.Subform2.instanceManager.count;
    

    If the subform did not have a minimum number, you would use the shortcut of instanceManager _ underscores:

    this.rawValue = Subform1._Subform2.count;
    

    The two options are JavaScript. I prefer to use the shortcut _ every time I work with the repetition of the proceedings.

    Hope that helps,

    Niall

  • Text field to validate the entered text? -with the help of Acrobat Pro

    I use Adobe Acrobat Pro. I have created a form and I need to validate the same field to make sure that something has been entered, if nothing, then error message is displayed.

    I already have the format and typing Javascript writes:

    At the level of the JavaScript document

    function alpha() {}

    Definition of regular non-committed
    var re = / ^ [a-zA-Z \-s]+$/;

    Get all of the characters that the user has entered
    var value = AFMergeChange (event);


    Allow the land to be developed
    If (! value) return;


    If {(event.willCommit)

    Set the regular expression are committed
    var re = / ^ [a-zA-Z \-s]+$/;

    } else {/ / not committed}


    Allow only characters that match the regular expression
    Event.RC = re.test (value);
    }
    }

    Event.Value = event.value.toUpperCase ();

    Custom keystroke script

    Alpha();

    Figured it out:

    onBlur for field I entered into this:

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

    App.Alert ("required field: Please enter a valid name, the field cannot be empty." "");

    }

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

  • I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy. How do I calculate that in the script?

    How do I calculate that in the script? I have 3 domains. A field is a constant date mm/dd/yy. The second field is a digital number (1-120) and can be changed. The third field calculates two fields 1 and 2 in the summation and shown in mm/dd/yy.

    You searched for ' add days?

    You must write a custom for this JavaScript calculation because you cannot add a number any date. Also the date strings are not just a number, even if we can convert a given date in a number for that date that represents the time form a date date (Epoch). Witn this value, we can achieve them all kinds of date calculations and collect a little information about the date. JavaScirpt uses midnight on January 1, 1970 UTC for starting point or the date of the time. Its value is zero, and every millisecond increases the value of 1. When a date string is converted to the date object JavaScirpt we have access to many properties of the date and can use several methods to extract information or adjust the date object.

    Field 1 is in the format "Date" with a format of "mm/dd/yy".

    Field 2 is in «Number» format with 0 decimal.

    Zone 3 is in the format 'None '. The custom calculation script applies to the formatting.

    The custom for JavaScript calculation area 3:

    var cField1 = this.getField("Field_1").valueAsString;

    var cField2 = this.getField("Field_2").valueAsString;

    Event.Value = "";

    If (cField1! = "" & cField2!) = "") {}

    Console.println (cField1 + "" + cField2);

    calculate that if we as no null data;

    var cDateFormat = "mm/dd/yy";

    convert start date date object.

    Kai var = util.scand (cDateFormat, cField1);

    get the date of the month;

    David var = oDate.getDate ();

    Add field 2 number of days;

    David = Number (nDate) + Number (cField2);

    of being updated for the new date.

    oDate.setDate (nDate);

    Set the field to update formatting;

    Event.Value = util.printd (cDateFormat, letter);

    } / / end of data not null;

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

Maybe you are looking for