since ‎07-08-2013
‎09-10-2020
Magus069
MVP
Re: text options (bold, italics) in forms Magus069 - Adobe LiveCycle
Hi there, Be aware that using this functionality may have an effect on copy pasting into the field.The result format may differ with the source formatting from the paste function.
70
Views
1
Like
0
Answers
Re: Javascripting conditional signature fields Magus069 - Adobe LiveCycle
Hi there, this seems to be a bit confusing... You should be able to create your own conditions and statements, if I provide you the JavaScript code to verify if a signature field is signed. //Use this with signature field within the formReady event (checks if field is signed only when form is opened or re-layout) [event.target.getField("form1[0]...")] var oSignInfo = event.target.getField("form1[0].Page1[0].frmSignature[0].digSignature[0]"); //This function can be stored in a script object funct...
90
Views
0
Likes
0
Answers
Re: Page header on Master Page Magus069 - Adobe LiveCycle
Hi there,In your Master Page, the object called Body1 is the "Content Area" in which the form will appear.So if you resize the object on top of the Master Page, it should lower your form to where you specify it. I hope this will help.
81
Views
1
Like
0
Answers
Re: Script to verify value is in list box Magus069 - Adobe LiveCycle
Hi there, to search for a specific value in a list box, simply have a loop iterate through each items and compare the displayed value to "Supplier Check Sheet"like the following:var boFoundValue = false; for (var i = 0; i < ListBox1.length; i++){ var strOneItem = ListBox1.getDisplayItem(i); if (strOneItem.indexOf("Supplier Check Sheet") > -1){ //If the string value is found in any displayed value from the listbox boFoundValue = true; } } //Now depending on the boolean value, you can disable digi...
72
Views
0
Likes
0
Answers
Re: HOW TO CALCULATE THE GRANDTOTAL OF SUB-TOTALS FROM NESTED TABLE? Magus069 - Adobe LiveCycle
Hi there, can you provide a screenshot of your hierarchy along with your code for that total field?
99
Views
0
Likes
0
Comments
Re: Array of repeatable fields in dynamic table Magus069 - Adobe LiveCycle
Hi there, By the look of your variable statements, I think you're trying to change the inital array value that resolveNodes() has returned,Which is why you are ending up with only 2 length array. //This section extract an array of items to retrieve a value directly to the designated object var monName = xfa.resolveNodes("ProductData.MonitorProductList.Row1[*].MProduct"); var monDesc = xfa.resolveNodes("ProductData.MonitorProductList.Row1[*].MDesc"); var monPrice = xfa.resolveNodes("ProductData.M...
97
Views
0
Likes
0
Answers
Re: Auto calculate end date Magus069 - Adobe LiveCycle
FormCalc is good way to do it, I almost forgot about it. Although, don't assume months are specific number of days... as of February is not a full month and for the rest there's 7 months with 31 days and 4 months with 30 days... counting months in days may result in errors. It all depends how it should be calculated.Also, I've sent you a message directly to you because for some reason the forum would not let me insert any new answer.
4157
Views
0
Likes
0
Comments
Re: Auto calculate end date Magus069 - Adobe LiveCycle
Alright, well first of all you'll have to forget all you know about this.getField() method when using Dynamic Fields.Dynamic forms are using XPath or "somExpression" to access different fields. You can access any field's path by having your text cursor in the JavaScript editor and then use the Ctrl+Left_Click on any object in the design and this will insert the reference syntax based on the current object's event you are accessing the wanted object.You can also use the common "this" to access th...
3175
Views
0
Likes
0
Answers
Re: Auto calculate end date Magus069 - Adobe LiveCycle
Alright, well first of all you'll have to forget all you know about this.getField() method when using Dynamic Fields.Dynamic forms are using XPath or "somExpression" to access different fields. You can access any field's path by having your text cursor in the JavaScript editor and then use the Ctrl+Left_Click on any object in the design and this will insert the reference syntax based on the current object's event you are accessing the wanted object.You can also use the common "this" to access th...
3178
Views
0
Likes
0
Answers
Re: Auto calculate end date Magus069 - Adobe LiveCycle
Alright, well first of all you'll have to forget all you know about this.getField() method when using Dynamic Fields.Dynamic forms are using XPath or "somExpression" to access different fields. You can access any field's path by having your text cursor in the JavaScript editor and then use the Ctrl+Left_Click on any object in the design and this will insert the reference syntax based on the current object's event you are accessing the wanted object.You can also use the common "this" to access th...
3163
Views
0
Likes
0
Answers
Re: Auto calculate end date Magus069 - Adobe LiveCycle
Alright, well first with dynamic PDFs you will have to forget all you know about using this.getField(), this does not work anymore, with some exceptions.If you wish to retrieve the value of a field you must use the xPath or somExpression of a field to be able to access it.While your text cursor is in the JavaScript editor, you can use the Ctrl+LeftClick command on any object in the design to automatically write the reference syntax for you.While in the event of the object that you want to access...
3189
Views
0
Likes
0
Answers
Re: Auto calculate end date Magus069 - Adobe LiveCycle
Hi there, First let's try to find a solution for your first issue where you can't change the date.When you were using this code to change the date within Adobe Pro, you were certainly creating Static PDFs which is using a different syntax than Dynamic PDF.So my question to you, is do you know if you still are working with Static PDFs or is this a Dynamic PDF? If you were to display the field's value, when it is not null, using the following:app.alert(this.getField("StartDate").value); What is th...
4218
Views
0
Likes
1
Answers
Re: Validate Field based on String length Magus069 - Adobe LiveCycle
When using rawValue , it will need you to verify first that the rawValue is not null. So, technically you need to verify with a if statement first that the rawValue isnt null, if it is null, then you can consider the validation to return false. Otherwise, if the rawValue is different than null, that is when you can handle the data and verify its length.
4653
Views
0
Likes
0
Comments
Re: Validate Field based on String length Magus069 - Adobe LiveCycle
Hi there, if you are using xfa.event.newText, it should be within the "enter" event. Any other event will need to use this.rawValue instead. I hope this will help
4674
Views
0
Likes
2
Answers
Re: Unable to make Print and Clear button on PDF within b... Magus069 - Adobe LiveCycle
I am not familiar with InDesign, but I'm pretty sure that creating PDF forms using InDesign does not create XFA based forms. It is probably creating PDF using AcroForm standardized as ISO 32000.
6143
Views
0
Likes
0
Comments
Re: Adobe Life cycle Designer- QR code Fix Size - SAP Magus069 - Adobe LiveCycle
Hi there, I'm not really savvy in the QR Code subject, therefor I've looked up information related to LCD and QR Codes... Technically, if you want to handle the height and width of the QR Code using LCD, somehow you'll have to handle an algorithm based on data provided to the QR code to change a specific property. Since a QR Code and PDF417 is two different entities... I am not sure if it is a good idea to readjust the size of the code bars. Your best shot at this would be modifying the followin...
7837
Views
1
Like
0
Replies
Re: Unable to make Print and Clear button on PDF within b... Magus069 - Adobe LiveCycle
Unfortunately, Google Chrome is no longer compatible with Acrobat software. Any JavaScript within a PDF is no longer supported by the browser. Here are some tips related to browsers if some can be handy for you.https://helpx.adobe.com/ca/acrobat/kb/pdf-browser-plugin-configuration.html Speculations about Chrome with PDF JavaScripthttps://answers.acrobatusers.com/Chrome-Javascript--q288206.aspx
6165
Views
0
Likes
0
Comments
Re: FormCalc conditional sum problem Magus069 - Adobe LiveCycle
Hi there, I can't directly give you the solution at hand without the object references. Without the hierarchy, all I can give you is the syntax on how to make this work.So technically, you need a calculate event for each fields which you need to input a calculated value or 0$, both will have the same syntax, but different outcome. For the Amount Due Traveler it should look something like the following:Amount Due Traveler :: calculate - FormCalc if (Expenses gt Advances) then ;Calculate Amount Du...
3480
Views
1
Like
1
Answers
Re: Unable to make Print and Clear button on PDF within b... Magus069 - Adobe LiveCycle
Hi there, you must have something else that would interfere with this line of code...Although, xfa.host.resetData(), doesn't have an 's' at the end of "host".I'm trying the same thing on a blank static PDF form within IE and it works fine. I tried "Client" or "Client and Server". Look around if you can find any other code. Also... maybe you could test something out, verify what is the viewer type when opening the PDF with the browser.Use the following line to display what is the application hand...
6179
Views
0
Likes
4
Answers
Re: How to reset signature field after signed? Magus069 - Adobe LiveCycle
Hi there, It is simpler than you think actually.As long as the field does not lock all fields and the button is still usable, you can use the resetData method with the signature field's somExpression as follow:xfa.host.resetData(Row2.SignatureField1.somExpression);
2527
Views
1
Like
0
Answers
Re: Issue with FormCalc script Magus069 - Adobe LiveCycle
Hi there,By the look of it it seems like you are somehow calling calculate... I am not sure if it needs more investigation with the Hierarchy, but it looks like you have an extra line of code which would be the event itselfLook within the event and make sure that you do not have a line event duplicate like the following:I hope this will help, otherwise please provide with an image with the full content of the event, plus and image of the hierarchy.
2579
Views
1
Like
0
Answers
Re: How to delete thousand separators in numeric field? (display pattern) Magus069 - Adobe LiveCycle
Hi Deborah,I can see that unfortunately you do not have all the patterns available within the list "Select Type"..here is what you need:This should work, let me know if otherwise.
2467
Views
1
Like
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
I'm sorry, I thought it wasn't that hard to do such a thing. Either my solution or radzmar is supposed to work, but if you can't seem to fit a solution for your issue... I don't think I could be of any help here.Good luck
2255
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
It is possible to have tables next to each other within a "Flowed" content, right under the Content drop down, there's the "Flow Direction" option and if you select "Western Text" option, it will allow items to place automatically next to each other instead of "Top to Bottom".
2252
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
Don't forget to set your subform as "Flowed" content... the options to repeat subform/table for each data item will always be unavailable when the parent content holder is "Positioned" content
2244
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
Technically you can have this option available within master pages if you wrap the content inside a subform.
2248
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
Not sure if you'd encounter some issue for trying this, but your best bet would be having the header table part of your Master Page just outside of the Content Area so it appears on every page...
2257
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
If it works without the relayout method, it's better this way...On my first response to you, I did not consider the fact that the data you input within the tables is imported...The issue where cells can't have their height reduced is usually triggered when the user can change the values within the cell, (only when you try to keep the highest height of the fields within a row)however if the data imported in the tables is static and cannot be changed, don't mind this issue.
2248
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
Well first, let's see if your code is working well... try using the relayout method at the end of your code.if not, then maybe you will need another approach
2247
Views
0
Likes
0
Answers
Re: How to modify height of textfield of repeating table using Javascript Magus069 - Adobe LiveCycle
Hi there,I don't think setting the height for each field in a loop is the best method...You might want to create a field which will contain the highest value and then set each of them individually within the layout:ready or initialize event...But beware, this is not recommended, because as soon as you control the height of the fields based on multiple fields, an issue will be created. When you assign a height to a field and then the field with the highest height is reduced, all the fields will s...
2245
Views
0
Likes
0
Answers