since ‎06-01-2006
‎16-10-2020
radzmar
MVP
Betreff: .rawValue format when using e-mail button (JavaScript help) radzmar - Adobe LiveCycle
The rawValue is already fine. The spaces and linebreaks shouldn't be removed. If they are removed anyway then because of something else, that's going on in the form. Can you share it?
45
Views
0
Likes
0
Replies
Betreff: Charts in aem designer(DOR) radzmar - Adobe LiveCycle
Sorry, I don' understand this question. What are you trying to do with charts?
29
Views
0
Likes
0
Answers
Betreff: Help to create a Button that creates an HTML or... radzmar - Adobe LiveCycle
Hi Louis, you can't create Rich Text formatted e-mails through the JavaScript API, just plain text is possible.
30
Views
0
Likes
0
Answers
Betreff: Issue rounding numbers in a textfield radzmar - Adobe LiveCycle
You're facing a typical rounding issue of the IEEE 754 standard. You can bypass this by converting the dicimals into integers before rounding. Keep in mind: The display pattern plays an important role when you're going to display percentage values. So with the pattern num{zz9.9999%} the input have to be a value between 1 (= 100 %) and 0 (= 0 %). So a value of 0.0046875 = 0.4687 %With a pattern num{zz9.9999 '%'} where the percentage symbol is quoted, the values are displayed this way. 0.0046875 =...
42
Views
1
Like
0
Answers
Betreff: text options (bold, italics) in forms radzmar - Adobe LiveCycle
Set the fields to allow RichTexts and select a font, that supports italic and bold styles, since not every font does it!The users can open the form field properties dialog in Adobe Acrobat/Reader by pressing [Ctrl]+[E] to select a different style, size or color.
81
Views
0
Likes
0
Answers
Betreff: I need help going forward with livecycle PDF for... radzmar - Adobe LiveCycle
There's no way to "convert" XFA forms to make them compatible with 3rd party PDF viewer that do not support XFA, I'm afraid.You can print them with a PDF printer to get static PDFs. This will keep the most the layout, but all scriptings then will have to be rethinked of added again with Adobe Acrobat.
101
Views
0
Likes
0
Answers
Betreff: Blank pages in Adobe form radzmar - Adobe LiveCycle
Blank pages are of the result of a bad pagination setting in the form. But it's not possible to answer this seriously for your form, without seeing the affected form and the data.
71
Views
0
Likes
0
Answers
Betreff: I'm stuck in a javascript code, which gives me w... radzmar - Adobe LiveCycle
The parseInt() method has a second parameter called radix. Its used the define the number base, for decimals its 10.You should use it to avoid that the input is converted into a wrong number by assuming the wrong base.parseInt(temp1, 10);
129
Views
0
Likes
1
Answers
Betreff: Clear color code in 18 rows radzmar - Adobe LiveCycle
There's a script for almost everything, it's only has to be developed 😉For your task, it might be a simple loop. var oRows = Table.resolveNodes("Row[*]"), i; for (i = 0; i < oRows.length; i += 1) { oRows.item(i).SIgnal.border.fill.color.value = "255,255,255"; }
72
Views
0
Likes
0
Answers
Betreff: Edit schema usecase not working radzmar - Adobe LiveCycle
This forum isn't about Adobe Campaign, so you won't get help here, I'm afraid. The correct forum for you is here: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic/ct-p/adobe-campaign-classic-community
67
Views
0
Likes
0
Replies
Betreff: Show a hidden object on the master page radzmar - Adobe LiveCycle
Why do you place that text field onto a master page and not on a body page? A master page is intended for static layout things in the background (logos, header, footer etc.) of the forms pages. Every new page has it's own instance of that master page, so to keep interactive objects syncron in the entire form requires to update every instance then. This can be become complicated depending on your design and the existings scriptings. So it's not recommended to do so which brings me back to my init...
103
Views
0
Likes
0
Replies
Betreff: table is missing a row. how do I add it? radzmar - Adobe LiveCycle
In the design view you can add or remove row and colums by clicking the small white triangle icon at the edge. It opens a context menu with various options.
71
Views
0
Likes
0
Answers
Betreff: increment number for each table row radzmar - Adobe LiveCycle
Add the following script to the index change event of Row1 colitem.rawValue = this.index + 1;
71
Views
0
Likes
0
Answers
Betreff: Hidden subform connected to dropdown object radzmar - Adobe LiveCycle
Hi, you can do this with much less code. Also, the messageBox methods returns 4 when pressing the Yes-button. var cSel = xfa.event.change, // current selection cPrevSel = xfa.event.prevText; // previous selection if (cSel === "Yes") { Additional00.presence = "visible"; // show subform } else if (cSel === "No" && cPrevSel !== "No") { if (xfa.host.messageBox("If you entered anything in the Supplier Description, SupplierReason or SupplierSubstantiation text fields it will be deleted. \n\nDo you wan...
99
Views
0
Likes
1
Answers
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
Open the file in Acrobat and check the JavaScript console (Ctrl + J) for any errors.
164
Views
0
Likes
0
Comments
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
AgeCalculated.rawValue = nAge; should already work, since both fields are in the same sub tree of the hierachy- Make sure that the numeric field is not updated by any other calculation script.
175
Views
0
Likes
0
Comments
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
Just make a screenshot of your forms hierarchy, so we can see where the fields are located.
197
Views
0
Likes
0
Comments
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
Make sure you set the language in the script editor to JavaScript, not FormCalc. If the output field is a text field it should work. However, I can't say if you SOM expression is correct. I would have to see at least the forms hierachy to check this.
219
Views
0
Likes
0
Comments
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
Yes, you need to replace Textfield1 with the SOM expression of the field you want to display the age in your form.
249
Views
0
Likes
0
Comments
Betreff: Script to calculate age from first 6 digits of a... radzmar - Adobe LiveCycle
Here's what I would do.Put it to the exit event of your numeric field. function calculateAge(aDate) { var oDateOfBirth = new Date(aDate[0], aDate[1] - 1, aDate[2]), iDiff, oAge, oDate = new Date(); // get current date oDate.setHours(0, 0, 0); // reset hours, minutes and seconds oDate.setMilliseconds(0); // reset milliseconds iDiff = parseInt(oDate.valueOf(), 10) - oDateOfBirth.getTime() - 1, dAge = new Date(iDiff); return Math.abs(dAge.getUTCFullYear() - 1970); } var cValue = this.rawValue, aDat...
258
Views
0
Likes
12
Answers
Betreff: Using a List Box to Allow Multiple Selections to... radzmar - Adobe LiveCycle
This is quite easy to accomplish.When you exit a lst field, it returns a list of strings that you can turn into an array which can be processed by a loop to get the results. var aSel = this.rawValue.split("\n"), // create an array from the selections in the list field // a reference array with a sub array containing the possible selection and the corresponding string going to be returned aStrings = [ ["2", "8 § 1324(a)(1)(A)(ii) Illegal transportation of an Alien"], ["3", "8 § 1326 Reentry of De...
65
Views
0
Likes
0
Answers
Betreff: Need a date field to be locked upon first signature radzmar - Adobe LiveCycle
You don't need a script. Just select the signature field and define a new collection under the Signature tab of the Object pallette. The collection defines those fields to be locked by the signaure.
112
Views
0
Likes
1
Answers
Betreff: Get the total count of current master page radzmar - Adobe LiveCycle
One way to count specific master pages is to use the resolveNodes menthod- // Count all instances of master page "MP2" xfa.form.resolveNodes("#subform.#pageSet.MP2[*]").length;
90
Views
0
Likes
0
Answers
Betreff: Digital Signature erases form field data radzmar - Adobe LiveCycle
I don't see any reason why a signature field would cause a deletion of data. Have you checked, that the field in question has a data binding? If not the entered values won't get saved into the form.
130
Views
0
Likes
2
Answers
Betreff: Hidden and Visible on Add Instance Object radzmar - Adobe LiveCycle
You're addressing the fields the wrong way. I' guessing that the subform "wrap" is the one, that contains the textfield and is going to be repeated, right?The loop than should look this way: var cSel = this.rawValue, oFields = xfa.resolveNodes("form1.P1.wrap[*].textfield2"), // wrap[*] means every instance of the subfom wrap. i; for (i = 0; i < oFields.length; i += 1) { oFields.item(i).presence = cSel == "1" ? "visible" : "hidden"; }
361
Views
1
Like
1
Answers
Betreff: absolut som expressions not working radzmar - Adobe LiveCycle
If you're using individual name for each subform and field within the forms hierachry, there is no need to use the resolveNode() method, because you can address the nodes directly. The script editor pays attention of this and automatically decides, if it is need or not.
718
Views
0
Likes
1
Answers
Betreff: absolut som expressions not working radzmar - Adobe LiveCycle
Do you face any problem with the SOM expression you get? Since the resolveNode() method is quite slow under circumstances it's the best to use the possibly shortest relative SOM expression. xfa.resolveNode() is quite the oppsite, since it start's at the very first note within the XFA tree to find the desired node. I suggest to avoid the usage of resolveNode() or resolveNodes() it possible. https://blogs.adobe.com/formfeed/2008/12/object_expressions_in_xfa.html
700
Views
0
Likes
1
Answers
Betreff: Live Cycle Designer edit caption radzmar - Adobe LiveCycle
From my experience this possibly happend when the spell checking was active. Try to turn it off under [Tools] > [Options] > [Spelling].https://help.adobe.com/en_US/livecycle/11.0/DesignerHelp/WS107c29ade9134a2c562f8a7112a2a888e22-8000.2.html
572
Views
0
Likes
0
Answers
Betreff: For loop with multiple variables and math calcul... radzmar - Adobe LiveCycle
I think you should change the formula the following way, to get the right results. var Fields = xfa.resolveNodes("CommRtng[*]"), Answered = 0, Values = 0, Rating = 0, i; for (i = 0; i < Fields.length; i += 1){ if (parseInt(Fields.item(i).rawValue, 10) > 0) { Answered += 1; Values += parseInt(Fields.item(i).rawValue, 10); } } Rating = 100 / (Answered * 5) * Values this.rawValue = Rating; To fire this calculation just once, put the script into a click event of a button so it's executed only when t...
1088
Views
1
Like
0
Answers
Betreff: Get the number of logical pages a subform spans radzmar - Adobe LiveCycle
I think the problem is you're referencing th first instance of the subform and so getting always the number of pages it spans.Given your subform is named "customer" than the code xfa.layout.pageSpan(customer) really means xfa.layout.pageSpan(customer[0]) which is the first instance. For repeated objects you'll need to address the desired instance. This can be done either direct or relative. For the direct way you'll have to know the SOM expression of the addressed object in question. This means ...
1421
Views
0
Likes
0
Answers