since ‎07-08-2013
‎01-07-2020
Magus069
MVP
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.
4004
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...
3038
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...
3030
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...
3025
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...
3050
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...
4065
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.
4585
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
4606
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.
6040
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...
7005
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
6062
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...
3407
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...
6073
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);
2465
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.
2528
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.
2424
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
2215
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".
2213
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
2202
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.
2208
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...
2217
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.
2207
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
2207
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...
2202
Views
0
Likes
0
Answers
Re: Links in Pop Up message Magus069 - Adobe LiveCycle
Hi there,the only way I've made it possible to have hyperlinks in message boxes is using custom dialogs... I've created a custom dialog using this blog from pdf share forms...To be able to make it look like a "hyperlink" use the dialog object "link_text"... or you can use a button.. it works the same but different displayunfortunately it can't be part of a paragraph within the dialog... it would be displayed like the following...orI hope this will help...
2329
Views
0
Likes
0
Answers
Re: Two tables in same page, one on top and one at the bottom Magus069 - Adobe LiveCycle
Hi there,I am not sure if there's a better way to do such a thing, but maybe the best way to achieve such a thing would be creating multiple instances of the initial page to keep them separated from one page to another...E.g.: The table could have a maximum of 9 rows, and when a 10th row is populated, the page or the subform holding the 2 tables would have an extra instance for additional rows... and so on...This is kind of a long stretch, but efficient for displaying the way you need it to be.I...
2188
Views
1
Like
0
Answers
Re: Assistance with JavaScipt Code for Three Tier Discount Levels Magus069 - Adobe LiveCycle
Hi there,This is quite a bit of code... and hard to figure out what you are trying to do exactly... but I might have spotted something out..Let's go step by step...If you start off the end of your code where discount 3 is applied (last elseif), that means it has a value...afterwards, one if above, discount 2 will apply only if total units is between threshold 2 and 3...one if above... discount 2 will apply if total units is greater than threshold 2 and discount 3 and threshold 3 is null... one i...
2222
Views
0
Likes
0
Answers
Re: Unwanted changes for numeric formatting Magus069 - Adobe LiveCycle
Hi there,There could be other reasons for this not to work... but I think I know why it behaves like this...technically if you want to have a num format along with a null format you'd have to assign both formats...if your format initially look like this:num{$ z,zzz,zz9.99} and you'd like to add the null format on any event you'd have to add the format along with the num format to ensure not losing any of those...To have a numeric format along with a null format, you'd have to get it to look like...
4161
Views
0
Likes
0
Replies
Re: Custom conditional break within content Magus069 - Adobe LiveCycle
Thanks radzmar, I will test this out next week. But on first thoughts, it might not work because textfields can litterally be anywhere in the form...I basically don't know what's the height needed for any textfield to reach the next page. But I'll test things out, I might be missing something like knowing if the texfield is only on 1 page or if it breaks to another page. If I am able to know if it breaks to another page, then I could verify the height to see if it's necessary to break or not.Goo...
2299
Views
0
Likes
0
Answers
Re: Text Field Fill Color Magus069 - Adobe LiveCycle
You can insert a message box in any event to test whenever the events are triggered.This way you'll get about when these events will be triggered.
2214
Views
0
Likes
0
Answers