since ‎16-06-2009
‎10-12-2019
AJP256
Level 2
Re: messageBox Line Breaks and "Hiding" Overflow Leaders AJP256 - Adobe LiveCycle
Thanks Srini! \n worked like a charm. Now, if someone can help me with overflow leaders, I'll stop bothering you guys (for now, at least ).
459
Views
0
Likes
0
Answers
messageBox Line Breaks and "Hiding" Overflow Leaders AJP256 - Adobe LiveCycle
Okay, two questions in one post, but I didn't want to clutter up the main page. First, if I want to have something like,Before you finish, make sure you have:*Done step A*Done step B*And done step CIf you've done so, click 'OK' to leavedisplayed in a message box, how can I set up the line breaks? I tried spacing things out with tabs, but I ran into some weird behavior where the messageBox cut off the last bit of the text. Is there a limit to the amount of text one can put in a messageBox?Second,...
1790
Views
0
Likes
2
Answers and Comments
Saving Form Data (Possibly Using Email Submit Button) AJP256 - Adobe LiveCycle
Hello all. I have a form which contains sensitive data, and therefore would prefer that users not submit it via email (somehow the thought of identity theft doesn't fill me with a warm fuzzy feeling). The good news is it appears this is completely feasible, since the email submit button allows you to save the form data when you indicate you use an internet-based email program. However, I'd rather automatically jump to a "Save As" window rather than having to explain to people they need to select...
684
Views
0
Likes
1
Answers and Comments
Re: How to Deal with a Large Form AJP256 - Adobe LiveCycle
Thank you Paul. The form is on its way.
453
Views
0
Likes
0
Answers
How to Deal with a Large Form AJP256 - Adobe LiveCycle
Hello all. I have created a very large form using LiveCycle, which utilizes quite a bit of scripting. Unfortunately, as more and more data is added, the form becomes slower and slower, to the point where a user spends more time waiting than actually filling out the form. This is clearly unacceptable, so I'm looking to remedy this. One thought I had was to split the form up into several sections (the format of the form allows this without trouble). I have a few concerns related to this. First, fo...
844
Views
0
Likes
2
Answers and Comments
Re: How to append new rows in a table with Javascript ? AJP256 - Adobe LiveCycle
Rui's answer will create copies of the entire table. There may be times where thsi is what you want, but you asked about creating new rows. If your new row is a copy of one of your existing rows, then you could use_RowName.addInstance(1);(the underscore at the beginning invokes the instance manager). Is this what you're looking for?
315
Views
0
Likes
0
Answers
Secure submission of XML data AJP256 - Adobe LiveCycle
Is there any way to make an e-mail submission of an XML file secure/encrypted without too much user assistance? The form I'm working on will contain private data, but its users may not be the most technologically-savvy people out there, so I'd prefer this to be almost automatic, if possible.Thanks!
976
Views
0
Likes
1
Answers and Comments
Re: Trying to use single quotation in display pattern for printing AJP256 - Adobe LiveCycle
In the place you want the right quotation mark, put this exact thing (single quotes and all)'\u2019'The way I understand things, since the quote mark is special (it affects other things in your picture code) you can't just put it in and expect it to come out. So, you use the unicode character. If that isn't the exact style of quote you want, go to http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html and find the one you want, then just change the number to match. Make sense? (By the way-I have no idea...
438
Views
1
Like
0
Answers
Re: Instanced text string value from text field value elsewhere AJP256 - Adobe LiveCycle
I think you're thinking of a Text object, not a Text Field. A Text Field will be outlined in orange in the Design View, while a Text object will be outlined in blue. If you're using a Text object, then you can't write scripts on it, but you can alter it by scripts. Otherwise, you can just use a Text Field with no caption (or a caption if you need it, I guess) and make it readOnly or Protected in the Value tab of the Object palette. You can write whatever scripts you want on a Text Field. Does th...
310
Views
0
Likes
0
Answers
Re: Question regarding paths AJP256 - Adobe LiveCycle
Is it the font.fill.color.value that you have in the one but not in the other (I don't know enough about addresses to see any reason why the one doesn't work if this isn't the problem)?
310
Views
0
Likes
0
Answers
Re: dynamically generate multiple instances of same subform AJP256 - Adobe LiveCycle
"So to reference a field in the first subform, or a field in the second subform, I would just index into the array, perhaps something like _Accounts_Subform[0].fieldName?"I think that's how it's supposed to work, but my luck with that has been mixed. If there's only one instance of a subform you don't need to use the [0] to reference it."Also, I've never referred to an object using the underscore (_Accounts_Subform vs. Accounts_Subform). What does the leading underscore mean? Usually I just crea...
632
Views
0
Likes
0
Answers
Re: Sum and display messagebox AJP256 - Adobe LiveCycle
I figured it out. Here's the code I'm usingvar sum = 0;for (var i = 0; i < _Body.count; i++) { sum += Body.all.item(i).Field_Name.rawValue;}this.rawValue = sum;if (sum > 100) { xfa.host.messageBox("The percentages you have entered sum to more than 100%. Pleace check to ensure you have not made an error.", "Error", 0, 0);}
471
Views
0
Likes
0
Answers
Re: dynamically generate multiple instances of same subform AJP256 - Adobe LiveCycle
Sure, it's not too hard once you know what you're doing. First, make sure all the "parent" subforms of your subform are set to be "Flowed" in the Object tab, and that your subform is set to "Repeat Subform For Each Data Item" in the Binding tab. So, your user inputs the number of accounts they have in a numeric or text field (we'll call it Number_of_Accounts). At this point, you could have the form generate the number of instances of the subform you want when the user exits this field, or you co...
599
Views
0
Likes
0
Answers
Sum and display messagebox AJP256 - Adobe LiveCycle
Okay, so I need to sum the values of a particular cell in a table, display that value, then display a message if they sum to more than 100. I tried to use javascript, but I couldn't figure out how to make a sum function. With FormCalc the sum function is built-in and works perfectly, but I can't get the message box to work. Here's what I have so far (in the calculate event):Sum(Body[*].Percentage_of_Interest)if ((Sum(Body[*].Percentage_of_Interest)) > 100) then xfa.host.messageBox("The percentag...
1208
Views
0
Likes
1
Answers and Comments
Re: How to bold a one word in a textfield AJP256 - Adobe LiveCycle
Thanks for your help! It looks like this will do what I need. Question-is it necessary to import the XML data from somewhere else? I've cut down the script so the only part I'm using istxtOutput2.value.exData.loadXML(exdataTemplate.rawValue,1,1);but I'd prefer it if I didn't have to have a text field floating around my form for the sole purpose of holding XML data. Is it possible to put the XML data in the script editor and get it to work? Is some command other than loadXML necessary? Thanks
8698
Views
0
Likes
1
Replies
Re: How to bold a one word in a textfield AJP256 - Adobe LiveCycle
I'm having the same issue. I'd like to have a single word bolded, and I need to accomplish this using a script. I can find references online to a JavaScript bold method, but I'm at a loss as to how it is applied in LiveCycle. Anyone have any ideas?
8698
Views
0
Likes
5
Replies
Radio Buttons, Global Binding, and Change Event AJP256 - Adobe LiveCycle
I have a pair of radio button groups with the same name that I have set to Global binding. The radio buttons in these radio button groups have script in the change event. The problem is, when I click on a button in one group, it doesn't fire the change event in the other one, even though the corresponding button changes. I can work around this, but I'm curious why this doesn't work.
1497
Views
0
Likes
4
Answers and Comments
Re: "if (paginated . . .)" AJP256 - Adobe LiveCycle
Thanks! At first I didn't think making it a Date/Time Field would work because I didn't think you could put anything but dates and times in it, but I guess you can use it like a regular text field! Of course, it yells at you because your text can't be formatted like a date the way the picture code is telling it to, but that's a small price to pay.
470
Views
0
Likes
0
Answers
Re: "if (paginated . . .)" AJP256 - Adobe LiveCycle
Thanks Paul! I was able to adapt your suggestion, and I have the basics figured out. Quick questions-I'd like to format the date that comes out on the second page the same way I have it formatted in DateFieldName rather than the default way, which is YYYY-MM-DD, but when I try to use the picture code date{M/D/YYYY} it gives me an error, because I'm trying to use a date picture code in a text field. How do I work around this? Second, when I first tried this I set the text field's access to "readO...
483
Views
0
Likes
0
Answers
"if (paginated . . .)" AJP256 - Adobe LiveCycle
I need to figure out how to make the rawValue of a textfield in a table header change when that header is repeated on the next page. I have a table where multiple instances of a row can be added, and it could cause a page break. When this happens, I want to take some information the user will have already entered and change the value of the textfield to that. untitled_2 shows what the first few instances should look like, and untitled_3 shows what I want to show up as the header after a page bre...
1479
Views
0
Likes
4
Answers and Comments
Just Curious. . . AJP256 - Adobe LiveCycle
So, when you're writing a script, if you precede the name of an object by an underscore you invoke the instanceManager (i.e. if your object is called "Thing", then _Thing invokes the instanceManager for Thing). However, you can also begin an object name with an underscore. So, say I had an object called "Thing" and another object called "_Thing". If I were to type in _Thing how would LiveCycle decide whether I was talking about the object _Thing or whether I was trying to invoke the instanceMana...
752
Views
0
Likes
1
Answers and Comments
Another Request AJP256 - Adobe LiveCycle
Would it be possible to add a page navigation tool to the Preview PDF tab? It's a pain to have to scroll through pages and pages of a form, and the scroll bar on the right isn't very user-friendly.
522
Views
0
Likes
0
Replies
Re: Border for the Caption of a Text Field AJP256 - Adobe LiveCycle
Thanks for your suggestion! I just messed with the Appearance attribute and now it looks the way I want it!
725
Views
0
Likes
0
Answers
Re: Access changed to "readOnly" AJP256 - Adobe LiveCycle
I figured it out-I just put the script in the radio button group's layout::ready event rather than the subform's layout::ready event. For some reason my radio button groups have values 1 and 2 (1 is yes, 2 is no). I'm not sure whether I set it that way or if it's a quirk in the way my program is set up, but it works, so I don't really care.
366
Views
0
Likes
0
Answers
Re: Access changed to "readOnly" AJP256 - Adobe LiveCycle
Thanks, Niall and Paul, for your help. Everything is working except the " Yes_No_Base.rawValue = "2"; " thing. I tried putting it before the "xfa.form.recalculate(1);" line, but it didn't help. Any other ideas? Now I understand about the calculate event and have removed all of my scripts from it. As far asI can tell everything behaves pretty much the same in the layout::ready event, and I don't get the access changed every time I mess with something
372
Views
0
Likes
0
Answers
Border for the Caption of a Text Field AJP256 - Adobe LiveCycle
Does anyone know of a way to get the border between the caption of a text field and the value section to be visible to a form user? It's a bit confusing when someone enters a field and there's no line of demarcation between the caption, which they can't edit, and the value, which they need to edit.
1758
Views
0
Likes
2
Answers and Comments
Re: Repeating entire table AJP256 - Adobe LiveCycle
As far as I can tell, adding instances of a table is exactly the same as adding instances of a subform. Just set the table to "Repeat for each data item" in the binding tab, then script a button (or whatever) with_Table1.addInstance(1);xfa.form.recalculate(1);
286
Views
0
Likes
0
Answers
Re: Access changed to "readOnly" AJP256 - Adobe LiveCycle
Unfortunately, the objects I'm scripting don't have a Value tab under the Object tab. I can't figure out any way to do this stuff outside the calculate event. For example, I'm scripting buttons to change in height based on the height of a subform, so I put something likethis.minH = (xfa.layout.h(Subform, "in")) + "in";in the calculate event. The button's size needs to adjust every time the subform's height changes, so the calculate event seems to be the only place to put it. The other thing I'm ...
369
Views
0
Likes
0
Answers
Re: Access changed to "readOnly" AJP256 - Adobe LiveCycle
Another update-it does this when I modify scripts in the "calculate" event of subforms. Are there some items that just don't automatically support scripts in the "calculate" events, or is it always automatic that objects with scripts in the "calculate" event are made readOnly?
362
Views
0
Likes
0
Answers
Re: Access changed to "readOnly" AJP256 - Adobe LiveCycle
Update-now on any of my buttons with scripts in the "calculate" event the access gets changed when I change a script in the "click" event as well. This is really annoying!
374
Views
0
Likes
0
Answers
Likes given to
Likes from