since ‎12-03-2013
‎22-04-2020
jasotastic81
Level 5
Re: Date Field YYYY only and validation message. jasotastic81 - Adobe LiveCycle
Do you need an actual validation message that prevents submitting?If not, here's a quick option. I'm presuming this is an event that is called by the Year Built field since you used "this" as the parameter for your function.if (this.rawValue > parseInt(dfPolicyTerm.rawValue.substr(0,4))){ xfa.host.messageBox(" "); xfa.host.setFocus(this);}
613
Views
0
Likes
0
Answers
Re: Exception error on Button2 click event jasotastic81 - Adobe LiveCycle
orderQuote.selectedMember().caption.value.text.value
4122
Views
0
Likes
1
Replies
Re: Date Function is not working in adobe reader jasotastic81 - Adobe LiveCycle
Try formattedValue instead of rawValue.rawValueformattedValue
539
Views
0
Likes
0
Answers
Re: Exception error on Button2 click event jasotastic81 - Adobe LiveCycle
OK, that makes a difference. If you're talking about the values for the radio buttons you set in the binding tab, you want orderQuote.rawValue.
4122
Views
0
Likes
3
Replies
Re: Determine Which Node an Event has Occurred? jasotastic81 - Adobe LiveCycle
If you can provide a screenshot of the hierarchy, I may be able to make this advice more specific.Are you changing something in the same instance where the change event occurs? If so, using .parent to walk up the hierarchy may a useful option for you. If you have a subform that repeats and two nodes inside called tfSomething and tfSomethingElse, and you want to have the exit event for tfSomething affect the other, then this.parent.tfSomethingElse will always hit the tfSomethingElse in the same s...
410
Views
0
Likes
0
Answers
Re: Use javascript "replace" function in dynamic pdf created with Livecycle designer jasotastic81 - Adobe LiveCycle
Like I said earlier, a space in a URL or equivalent file path is usually changed to %20 instead of a space. Have you tried using that in the replace function?
741
Views
0
Likes
0
Answers
Re: Exception error on Button2 click event jasotastic81 - Adobe LiveCycle
Field.formattedValue returns a string, so it shouldn't be a problem.I tried your code with two text fields and a numeric field with a currency pattern, and it created the email just fine.I'd look back at that path to the orderQuote field. Is that part of a table or a subform? If so, is it in something that is repeated? If you place your cursor in the script editor and CTRL+click the orderQuote field, is that the path it gives you?
4122
Views
0
Likes
5
Replies
Re: Use javascript "replace" function in dynamic pdf created with Livecycle designer jasotastic81 - Adobe LiveCycle
Here's a screenshot of the example. This is the exit event for tfFieldWithSpaces.
742
Views
0
Likes
0
Answers
Re: Exception error on Button2 click event jasotastic81 - Adobe LiveCycle
Is line 8 the cMsg line? There's a comma at the end that shouldn't be there since it's the last line in your mailDoc build.
4122
Views
0
Likes
8
Replies
Re: Use javascript "replace" function in dynamic pdf created with Livecycle designer jasotastic81 - Adobe LiveCycle
The built-in javascript replace function should work just fine.tfFieldWithoutSpaces.rawValue = tfFieldWithSpaces.rawValue.replace(/ /g,'%');But if this is part of a link, do you want %20 instead? That's the URL equivalent of a space.tfFieldWithoutSpaces.rawValue = tfFieldWithSpaces.rawValue.replace(/ /g,'%20');
745
Views
0
Likes
0
Answers
Re: Best function to count number of Drop Down Menu selections jasotastic81 - Adobe LiveCycle
Here's an example solution. I'm not certain how you set up the dropdown to repeat, so I'm presuming that there is a subform that contains the dropdown list each time it is repeated.var apples = oranges = pears = 0;var lists = xfa.resolveNodes("sfSomething[*].ddFruit"); //sfSomething is the repeated subform that contains the dropdown list ddFruitfor (i=0; i
377
Views
0
Likes
0
Answers
Re: Malformed SOM expression: form1[0]ConcreteFieldReport[0].FooterFields[0].SignatureField1[0] jasotastic81 - Adobe LiveCycle
Open the form in LC, select form1 in the hierarchy, open the script window if it isn't already open (Window > Script Editor), change the view to show "Events with Scripts", press CTRL+F to open the find box, and type the expression in the "Find What" field. You'll probably have to leave out the indexes, and you'll likely only need the first part of it.
568
Views
0
Likes
0
Answers
Re: Malformed SOM expression: form1[0]ConcreteFieldReport[0].FooterFields[0].SignatureField1[0] jasotastic81 - Adobe LiveCycle
You'll have to find the script that has the incorrect string and put it in.
562
Views
0
Likes
0
Answers
Re: Issues with creating dynamic instances jasotastic81 - Adobe LiveCycle
xfa.resolveNode("Country1["+(Country1.instancemanager.count-1)+"]").Sub4.ff_country.rawValue = ChooseCountry.DropDownList1.rawValue;
548
Views
0
Likes
0
Answers
Re: Text field entry drop down menu jasotastic81 - Adobe LiveCycle
Here's my solution to this. The dropdown includes the options "yes" and "no."
403
Views
0
Likes
0
Answers
Re: Malformed SOM expression: form1[0]ConcreteFieldReport[0].FooterFields[0].SignatureField1[0] jasotastic81 - Adobe LiveCycle
This is the only way I can get that error in Acrobat. Notice that I left the dot out of the string between form1[0] and ConcreteFieldReport[0].
557
Views
0
Likes
0
Answers
Re: Is there a way to change txt field background color based on user entry. jasotastic81 - Adobe LiveCycle
Here's a screenshot of how I set this up. The color should stay once you leave the field unless there's something else causing it to change.
605
Views
0
Likes
0
Answers
Re: Copy Date value from Design Page to Master Page jasotastic81 - Adobe LiveCycle
In the exit event for the field whose data you want copied to the master page:form1.pageSet.Page1.Text1.rawValue = this.rawValue;I'm making a couple of presumptions here: 1) The name of your master page is Page1 and the name of the text field is Text1, and 2) that you're handling the formatting elsewhere, or you don't care about it.If the formatting does matter you can try this.form1.pageSet.Page1.Text1.rawValue = this.formattedValue;
438
Views
0
Likes
0
Answers
Re: Malformed SOM expression: form1[0]ConcreteFieldReport[0].FooterFields[0].SignatureField1[0] jasotastic81 - Adobe LiveCycle
Is there a dot missing between the first index and Concrete?form1[0].ConcreteFieldReport[0].FooterFields[0].SignatureField1[0]
599
Views
1
Like
0
Answers
Re: Livecycle Drop Down List jasotastic81 - Adobe LiveCycle
In Design View, select the DropDown list > Font tab. Set the font size to 0. it will decrease the font size to allow you to see the entire entry in the list.Font = 10Font = 0
432
Views
0
Likes
0
Answers
Re: Script for Matching Totals jasotastic81 - Adobe LiveCycle
Presuming that the fields are called nfCalculated and nfManual.if (nfCalculated.rawValue != nfManual.rawValue) xfa.host.messageBox("The calculated value does not match the manually entered value.");
394
Views
0
Likes
0
Answers
Re: Adding Multiple Objects to One Table Cell jasotastic81 - Adobe LiveCycle
Here's my solution. Basically, the cell with multiple objects gets a subform inside, and the items inside of that are hidden by default. Then, based on the choice in a dropdown list, I make them visible.The script:sfCell.sfCBSet.presence = sfCell.ddSomething.presence = sfCell.tfSomething.presence = "hidden";switch (this.rawValue){ case "Checkboxes": sfCell.sfCBSet.presence = "visible"; break; case "Dropdown": sfCell.ddSomething.presence = "visible"; break; case "Text Field": sfCell.tfSomething.p...
483
Views
0
Likes
0
Answers
Re: Is there a way to change txt field background color based on user entry. jasotastic81 - Adobe LiveCycle
I'm sorry, I didn't see that you asked for yellow.if (this.rawValue == "Y" || this.rawValue == "y") this.fillColor = "255,255,0";
560
Views
0
Likes
0
Answers
Re: Is there a way to change txt field background color based on user entry. jasotastic81 - Adobe LiveCycle
This in the exit event will work:if (this.rawValue == "R" || this.rawValue == "r") this.fillColor = "255,0,0";if (this.rawValue == "G" || this.rawValue == "g") this.fillColor = "0,255,0";if (this.rawValue == "B" || this.rawValue == "b") this.fillColor = "0,0,255";
566
Views
0
Likes
0
Answers
Re: TimeSheet to Be Round to the Nearest Quarter Hour jasotastic81 - Adobe LiveCycle
The first thing I notice is that there are a LOT of endif's missing. From the FormCalc reference: You are not required to have any elseif(...) or else statements as part of your if expression, but you must state the end of the expression with endif. (Emphasis mine.)Also, towards the end (and this might be due to the lack of endif's) your function calculated the value of StartInterval, then sets it to 0. So, even if the rest of the function was working, that last bit would guarantee that the answ...
474
Views
0
Likes
0
Answers
Re: Date Function is not working in adobe reader jasotastic81 - Adobe LiveCycle
This seems to work just fine for me. What version of LC, Reader, and Acrobat are you using?LC ES3, Preview Reader XI, Acrobat X
533
Views
0
Likes
0
Answers
Re: Master page: input data from master page 1 showing into another input box in master page 2 jasotastic81 - Adobe LiveCycle
Here's my solution to this. (I used the calculate event for the box that would be on the second master page, but you could modify it to work for another event.)
485
Views
0
Likes
0
Answers
Re: Include radio button values in the subject line of the email on Submit jasotastic81 - Adobe LiveCycle
RadioButtonList.rbTest.caption.value.text.value returns the caption of the radiobutton named rbTest.
525
Views
0
Likes
0
Answers
Re: Automatically select correct check box based on choices made in previous section? jasotastic81 - Adobe LiveCycle
Looking at the conditions, it looks like you're trying to say "if column 1 has more than column 2 or column 3, then do something." JavaScript can't read conditions like that. It's reading "if (column 1 has more than column 2) OR (column 3)," and it doesn't know what to do with that column 3 number unless it's 0 or 1.Here's an example using only two rows and three columns. The rawValues are 0 and 1 for each checkbox. I've set it so that if column 1 has more checkboxes, then Col1 gets checked. Sim...
365
Views
0
Likes
0
Answers
Re: How to make price based on date jasotastic81 - Adobe LiveCycle
Here's my solution. I set the date format to date{YYYY-MM-DD}. You'll want to adjust the portion where the date is detected to match how you format the date.
399
Views
0
Likes
0
Answers