since ‎01-10-2013
‎10-12-2019
MinusZero
Level 5
Re: Get an Email and CC address from a text field MinusZero - Adobe LiveCycle
I would suggest seeing this post. Button - Submit Email radzmar​ had a nice solution.
595
Views
1
Like
0
Answers
Re: Show/hide cover letter from button click MinusZero - Adobe LiveCycle
Are you using resolveNode? I find sometimes when i am having trouble I do that and it works. I have never need to hide a master page, it should be attached to the page itself. Check your references.ie:this.resolveNode("topmostSubform.CoverLetter").presence = "hidden";
1116
Views
0
Likes
0
Answers
Re: Button to lock all fields MinusZero - Adobe LiveCycle
Hi,I would just add a button with the following code:form1.#subform[0].Button1::click - (JavaScript, client)form1.access = "protected"; //disable everythingthis.presence = "hidden"; //hide this buttonClicking the button will lock all the fields and hide the button. Of course, you cant go back after this without having another button to "open" the form.
316
Views
0
Likes
0
Answers
Re: Need JavaScript Help on How to Create New Line in Document Rendered in HTML MinusZero - Adobe LiveCycle
I am not familiar with AEM Forms, but did you know that dynamic forms work in Internet Explorer as a PDF. They wont work in other browsers.
522
Views
0
Likes
0
Answers
Re: Could someone Help please!!! Abode livecycle designer issue MinusZero - Adobe LiveCycle
Without seeing it makes it a bit hard to help.However, i got my start in Livecycle with the tutorials. The Purchase Order tutorial will be very helpful for learning calculations using FormCalc and tables. Check it out Adobe LiveCycle ES4 * Creating a purchase order form https://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwiTlNqEhJ7fAhUZSo8KHRhTAAIQFjAAegQIBRAB&url=https%3A%2F%2Fhelp.adobe.com%2Fen_US%2Flivecycle%2F11.0%2FDesignerQuickStartTutorials%2FWS92d06802c76abadb25...
279
Views
0
Likes
0
Answers
Re: How to use forms on Android devices? MinusZero - Adobe LiveCycle
Dynamic forms also run in Internet Explorer on the PC.
411
Views
0
Likes
0
Answers
Re: Can I not an event script for a text field? MinusZero - Adobe LiveCycle
Hi nicolec26875103​,radzmar​ answered your other post regarding the hiding of all fields.Check if you are you using a TextField or Text object?The Text object cannot have any code in it.
1053
Views
1
Like
0
Answers
Re: Javascript stopped working after flowed containers added MinusZero - Adobe LiveCycle
Thanks for your comments. I am glad to help. We were all learners at some stage. I am still learning things now You can make the console show automatically when errors are thrown - In Acrobat, go to Edit > Preferences and in the Javascript options check this box (below).
642
Views
0
Likes
0
Answers
Re: Javascript stopped working after flowed containers added MinusZero - Adobe LiveCycle
Hi,I dont know if it is related, but i find when something is not referenced correctly, the form stops processing.When i clicked a radio button in table 2 or 3, the javascript console threw an error. Not on just one radio button, but many. Invoke the debugger with CTRL+J when you preview the form.I find it hard to look at an unfamiliar form but I looked through the code for the checkbox - form1.Page2.Table3Sec1.Row2.cb16::change - (JavaScript, client)I searched for Row14 in the code and it refer...
462
Views
0
Likes
0
Answers
Re: Javascript stopped working after flowed containers added MinusZero - Adobe LiveCycle
I would put it in a dropbox or google drive and post a link here.Failing that, post some screens of the form hierarchy and maybe the radio button code.
458
Views
0
Likes
0
Answers
Re: Switch statement default setting MinusZero - Adobe LiveCycle
Hi,The default case for your switch would be:default://some code for everything elsebreak;
646
Views
0
Likes
0
Answers
Re: copying nested table contents MinusZero - Adobe LiveCycle
Hi,radzmar​'s solution would replace your code.If you dont want to go down the often confusing route of 'for statements', what you have would be placed in a button click. If you want to do multiple rows at the same time, you will have to write that code in as well. I have done that before. If your subform is limited to the amount of rows that can be added, you only have to write a finite amount of code.
840
Views
0
Likes
0
Answers
Re: copying nested table contents MinusZero - Adobe LiveCycle
Hi martynd4832568​,You may need to copy each row with it's specific instance reference.The first repeating row in the table with be specified with [0], second row [1], third row [2] and so on.Assuming which is the repeating row. Copying the first row actionItem rawvalue would be something like this.this.resolveNode("Archive_Page.Table1.Row1.SubForm2.Table2.Row1[0].actionItem").rawValue = this.resolveNode("Main.Table1.Row1.SubForm2.Table2.Row1[0].actionItem").rawValue;For the second physical row ...
837
Views
0
Likes
0
Answers
Re: Clear digital signature (right-click) takes long time MinusZero - Adobe LiveCycle
Hi,I have never had a problem with it taking so long, but have you thought about using a button to clear both using resetData code? Worth a try?form1.#subform[0].Button1::click - (JavaScript, client)//reset signature fields and nothing else on the form.xfa.host.resetData("SignatureField1");xfa.host.resetData("SignatureField2");
1034
Views
0
Likes
0
Answers
Re: how to make text field visible depending on two groups of radio buttons? MinusZero - Adobe LiveCycle
Hi,You will need to place the code in the click event of all radio button items. The null code wouldnt be needed then, when you click the other button in the group, it will re-execute the code. Your suggested code and my example below doesnt handle if one is yes and one is no.You can use the same code in all 4 click events (javascript).if(Page1.Content.mulChoice1.rawValue == "2" & Page1.Content.mulChoice2.rawValue == "2"){Page1.Content.textField.presence = "visible";}if(Page1.Content.mulChoice1....
500
Views
0
Likes
0
Answers
Re: Button that hides all empty fields MinusZero - Adobe LiveCycle
Awesome code. I will add that to my database of code tutorials.
813
Views
0
Likes
0
Answers
Re: Single checkbox value based on array of checkboxes MinusZero - Adobe LiveCycle
Good job in figuring it out.You can also reference an object by using this.resolveNode. Using this, the form will search from top down for the first instance that matches. I have found there are times where a code isn't working for me and when i add the code it then works. Usually happens when working in a table. I usually just resolveNodes anyway now days just to save problems later. It isnt always required and depends on the size of your form.eg: Page5.Table4Sec3_1.Table4Sec3_1_Row3.cbNV3.rawV...
676
Views
0
Likes
0
Answers
Re: Single checkbox value based on array of checkboxes MinusZero - Adobe LiveCycle
Hi originalien​,In the change event (javascript) for the A, B and C checkboxes add the code:if(CheckBoxA.rawValue == "1" & CheckBoxB.rawValue == "1" & CheckBoxC.rawValue == "1") //if A, B and C are checked. Check D{CheckBoxD.rawValue = "1";}if(CheckBoxA.rawValue == "0" | CheckBoxB.rawValue == "0" | CheckBoxC.rawValue == "0") //if A, B OR C are unchecked, uncheck D{CheckBoxD.rawValue = "0";}D is checked when all others are checkedIf any of the A, B or C boxes are not checked. D is unchecked.
465
Views
0
Likes
0
Answers
Re: calculate total hours of column MinusZero - Adobe LiveCycle
Hi eugzl,I havent had a lot of fun with time calculations but here is something i worked up to change hours into days and hours. You can modify it further as needed. This might get you closer to what you are after.I have a NumericField with the hours total and a TextField to display the result. In the exit event of the NumericField (you could put it elsewhere. I have this: form1.#subform[0].NumericField2::exit - (JavaScript, client)var hours = NumericField2.rawValue; //You can replace this with ...
1153
Views
0
Likes
0
Answers
Re: calculate total hours of column MinusZero - Adobe LiveCycle
I would actually do it in FormCalc.This is what i did:I created a repeating table (the row cells are all Date/Time Fields (Object/Binding tab/Data Format set to Time)I also had a Total numericField and a button to repeat the rowsIn the subTotal Calculate (FormCalc) event i have:var startTime = Time2Num(this.resolveNode("fromTime").formattedValue, "HH:MM")var finishTime = Time2Num(this.resolveNode("toTime").formattedValue, "HH:MM")var total = Num2Time(this.resolveNode("subTotal").formattedValue, ...
904
Views
0
Likes
0
Answers
Re: Looping through subforms to hide subforms containing an unchecked Checkbox MinusZero - Adobe LiveCycle
Good tip. You can also show the console any time by pressing CTRL+J
876
Views
0
Likes
0
Answers
Re: Looping through subforms to hide subforms containing an unchecked Checkbox MinusZero - Adobe LiveCycle
Just some thoughts....You could also try specifically naming your subforms rather than using the autonumbering when the same name is used. I found that the number in square brackets in an object name interfered with the reference to an instance which is also a number in square brackets.Eg: instead of cb[1], have cb1 etcUsing resolveNode has also fixed some issues i have had as well with subforms.
592
Views
0
Likes
0
Answers
Re: Looping through subforms to hide subforms containing an unchecked Checkbox MinusZero - Adobe LiveCycle
Hi,Is this the problem? There is a typo in your code:presense should be presence
597
Views
0
Likes
0
Answers
Re: Preview of PDF does not work in IOS12 MinusZero - Adobe LiveCycle
LCD forms can run in Internet Explorer if that is a possibility for you.
782
Views
0
Likes
0
Answers
Re: ES4 dies after splash screen MinusZero - Adobe LiveCycle
Are you able to try installing in a non-default folder? If i have to reinstall something 'fresh' i try a different folder name.
356
Views
0
Likes
0
Answers
Re: LiveCycle Backup file MinusZero - Adobe LiveCycle
Good to know, i have lost hours of work before. Such as shame there was no autosave in LCD.
274
Views
0
Likes
0
Answers
Re: How to set bullet points? MinusZero - Adobe LiveCycle
This option isn't there in my version ES2 (9.0.0.2).I use an ASCII shortcut. Hold ALT, press 7 on the numpad, release ALT - that gives a bullet •It isnt a list though.
1133
Views
1
Like
0
Answers
Re: new instance MinusZero - Adobe LiveCycle
Weird. I created a table - one row, two radio buttons. I also created a button to add an instance and the new row gets new unselected radio buttons.If you are still having difficulty, you could always just change the raw value after creating the new instance, but you would need to used the instance manager to target the correct instance to change the rawValue of.Unselected originalOne RB selectedNew instance created, RB not duplicated
433
Views
0
Likes
0
Answers
Re: Save a blank form button MinusZero - Adobe LiveCycle
Great stuff. Sometimes the simplest option is the best. All my code is very uncomplicated, it is larger, but it works which is my desired outcome.
1017
Views
0
Likes
0
Answers