Expand my Community achievements bar.

jasotastic81
jasotastic81
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • it's your if statement. The "or" is the last operation used. So, you're actually saying, "if year is 4 and (B1P+BP)>".45" OR if (B1P+BP)<".30" and CourseNum>="20", then change the background."Try:if (form1.#subform[0]...YearLevel == 4 & ((B1P+BP)>".45" or (B1P+BP)<".30") & CourseNum>="20")

    Type

    Questions

    Views

    820

    Likes

    0

    Replies

    0
  • I don't know exactly how to tell you to implement this, but you can script the second field to check for a space " " at the beginning. If it's there, delete the space and continue with whatever is supposed to be there to remove the leading white space.If there isn't a space, then you have a letter o...

    Type

    Questions

    Views

    7.2K

    Likes

    0

    Replies

    0
  • Yeah, I just made it something simple. It looks for whatever string is in the ().If you had a text field that you want to let the user use to search for something, I'm calling it tfQuery, then your if statement could be:if(TextField1.rawValue.search(tfQuery.rawValue) != -1) ...The "!= -1" is there b...

    Type

    Questions

    Views

    2.6K

    Likes

    0

    Replies

    0
  • yep! Javascript has one built in: string.search()Here's an example:if (TextField1.rawValue.search("the") != -1) TextField2.rawValue = "yes";else TextField2.rawValue = "no";http://www.w3schools.com/jsref/jsref_search.aspMessage was edited by: jasotastic81 added external link to w3's site.

    Type

    Questions

    Views

    2.6K

    Likes

    0

    Replies

    0
  • The first thing I noticed was the missing semicolons in the "Show Checked Items" button. Is that script working?I would replace it with this.var r = 0;var s = 0;for(var i = 1; i<18; i++){     r = Number(i*2+1);     s = Number(i*2+2);          if(xfa.resolveNove("Table1.Row"+r+"CheckBox"+i).rawValue ...

    Type

    Questions

    Views

    2.1K

    Likes

    0

    Replies

    0
  • There may be a character limit, but It's past 900, for sure. I just made a sample file in LCD-ES3, and I copy/pasted 2100 characters in a field. It kept all of them. Windows says that's 2,198 bytes (4,096 bytes on disk).

    Type

    Questions

    Views

    856

    Likes

    0

    Replies

    0
  • this worksif (($.rawValue <= "2014-01-01") and (TextField1.rawValue eq "0271" or TextField1.rawValue eq "0272" or TextField1.rawValue eq "0413"))then TextField2.rawValue = "less and right"else TextField2.rawValue = "more or wrong"endifChange the commands to whatever you need, but that if statement w...

    Type

    Questions

    Views

    2.0K

    Likes

    0

    Replies

    0
  • I'll be honest, I have not used REST at all. (Something I should probably remedy.) So, I can't offer you any solid advice. I found this article about REST requests. It doesn't exactly address what you're doing, but it seems to say that you can invoke a rest request from a button. If it were somethin...

    Type

    Questions

    Views

    658

    Likes

    0

    Replies

    0
  • I'm not sure what you mean by "it's not handling the datefield correctly." Just looking at the code you provided, I would presume that it's not performing the logic the way you want. It should be evaulating "01.01.2014" like it would letters--one number at a time. (e.g., "flask" > "flash" because "k...

    Type

    Questions

    Views

    2.0K

    Likes

    0

    Replies

    0
  • Your entire page can be the "object." If you select the page under the hierarchy tab, you can select a border around the entire form. It'll stop wherever you put your margin.

    Type

    Questions

    Views

    557

    Likes

    0

    Replies

    0