Expand my Community achievements bar.

Jason18
Jason18
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • The "rowObj[*]" field was just an example. You needed to replace it with the name of your rows. So based on your example form, the code would be:rowNodes = xfa.resolveNodes("form1.#subform[0].Action.Table1.MoreActions[*]");for (var rowCount = 0; rowCount < rowNodes.length; rowCount++) {  // if this ...

    Type

    Questions

    Views

    473

    Likes

    0

    Replies

    0
  • Since you know that you never want more than 8 rows, you could show/hide the rows rather than create them to ensure consistent data.To show a row, you will need to check each row to find the first hidden row and make it visible. Code might be something like this:  rowNodes = xfa.resolveNodes("rowOb...

    Type

    Questions

    Views

    469

    Likes

    0

    Replies

    0
  • Hi Dog,There are a couple of ways to do it, probably easiest is to take advantage of the fact that the 2 fields are in the same row and therefore share a parent. You could put this script in the ready:layout event of the target field.      // Refer to data in previous column     if (this.parent.Drop...

    Type

    Questions

    Views

    258

    Likes

    0

    Replies

    0
  • Try this regular expression:"^[0-9]{4}-[0-9]{3}-[0-9]{3}(-[A-Z]{1,2})?$";The addition is: (-[A-Z]{1,2})?[A-Z]     Can be any character in the range of A-Z (case-sensitive){1,2}     Means that the preceding item (the A-Z) is expected to occur 1 or 2 times()?        These brackets group this part of t...

    Type

    Questions

    Views

    929

    Likes

    0

    Replies

    0
  • The first line of code is:var fieldRegExp = "^[0-9]{4}-[0-9]{3}-[0-9]{3}$"; // nnnn-nnn-nnnThis is a regular expression to describe a pattern of characters: nnnn-nnn-nnnWhere n is a digit from 0 to 9.Components of the regular expression:^     indicates the start of the string[]    contains a range o...

    Type

    Questions

    Views

    959

    Likes

    0

    Replies

    0
  • Use a regular expression in the validate event of the field.var fieldRegExp = "^[0-9]{4}-[0-9]{3}-[0-9]{3}$"; // nnnn-nnn-nnnif (this.rawValue.search(fieldRegExp) === -1) {     false;}else {     true;}

    Type

    Questions

    Views

    933

    Likes

    0

    Replies

    0
  • The first part of your question can be done by putting the following code in the click event (JavaScript) of the text field:xfa.host.setFocus(null);xfa.host.setFocus(this);

    Type

    Questions

    Views

    453

    Likes

    0

    Replies

    0
  • Sorry, the backslashes must be escaped, i.e. add an additional backslash to the start of "\d" (or replace "\d" with "[0-9]"). E.g:var dateRegExp = "^(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])-(19|20)\\d\\d$"; // mm-dd-yyyyif (this.rawValue.search(dateRegExp) === -1) {     false;}else {     true;}

    Type

    Questions

    Views

    893

    Likes

    0

    Replies

    0
  • You could use a regular expression: E.g.var dateRegExp = "^(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$"; // mm-dd-yyyyif (oField.rawValue.search(dateRegExp) === -1) {     // error!}Or you could use a date object as suggested in the previous post, but also stop the user from typing in a dat...

    Type

    Questions

    Views

    907

    Likes

    0

    Replies

    0
  • Hello,I am trying to create a table with a Header, repeating Transactions and a Total. These components will be quite complex in the final form so I am using subforms rather than an actual table object.I don't want the Total subform to be left on a new page by itself, i.e. it should always be accomp...

    Type

    Questions

    Views

    750

    Likes

    0

    Replies

    0
Top badges earned by Jason18
Customize the badges you want to showcase on your profile