since ‎02-09-2015
‎10-12-2019
sergiy2511
Level 2
Re: Change event of dropdown not working in new instance. sergiy2511 - Adobe LiveCycle
Hi, so basically what you need is to check the instance number of your Main.tblPartV.Row1 and then reference your Main.sfAccount with that number using resolveNode. Your key to this is .instanceIndex. So if your ddType is located under the Main.tblPartV.Row1, your code will look something like this:var row_counter = this.parent.instanceIndexvar ddType_selection = this.rawValueif (ddType_selection == "Individual"){xfa.resolveNode("Main.sfAccount[" + row_counter + "].Individual").presence = "visib...
1216
Views
0
Likes
0
Answers
Re: Number of new instances not showing in repeating sub-form... sergiy2511 - Adobe LiveCycle
Hi again and thank you so much for your kind words. I wish I could give you a meaningful explanation, but unfortunately I can't, because I was also learning this stuff by browsing through forums and asking for support from knowlegeable users I think there's some referencing rules, which you can investigate on the JavaScript DOM subject, which may bring more light for you on this concept.Otherwise, let me know if there's anything else I could help you with
1197
Views
0
Likes
0
Answers
Re: Number of new instances not showing in repeating sub-form... sergiy2511 - Adobe LiveCycle
Hi, I think the easy way you may try is to reference your objects starting with subform you're in. So instead of form1.Main.sfCorp.tblCorpName.Row1.instanceManager.setInstances try sfCorp.tblCorpName.Row1.instanceManager.setInstances.Also, just sharing my experience, for the scenarios like you describe it's easier to just code the button within your multiple instances table that would add a row (or set of fields). That way user can manipulate the instances number easier. And you probably want to...
1186
Views
0
Likes
0
Answers
Re: Generating a form from XML data - Need to take values populated in one table to create another table sergiy2511 - Adobe LiveCycle
Hi, so basically once your first table is created you need to loop through its rows and for every row that meets your condition you are creating the new row in the Table B. You can do it by accessing the .instanceManager of the row in table B. Then once the row is created you can use xfa.resolveNode to pass values from table A to Table B. Your last row of the table B may be identified by the .count property that returns your current number of rows in table B.Let me know if you'll need more detai...
907
Views
0
Likes
0
Answers
Re: LiveCycle 11 Locking Date Time Box from changing sergiy2511 - Adobe LiveCycle
Hi Chuck,by 'injecting' I meant this line in your code:TIMB1.rawValue = Concat(Num2Date(date(), "M/D/YYYY "), "@ ", Num2Time(time(), "HH:MM:SS"));That's how I assume you put the date and time stamp into the field, right?So in FormCalc, you could write something like this to make it conditional:if (TIMB1.rawValue eq null) thenTIMB1.rawValue = Concat(Num2Date(date(), "M/D/YYYY "), "@ ", Num2Time(time(), "HH:MM:SS"));endifThis code will place the date/time just once, when that field is empty. Once ...
1103
Views
0
Likes
0
Answers
Re: LiveCycle 11 Locking Date Time Box from changing sergiy2511 - Adobe LiveCycle
Hey Chuck, perhaps you can inject the date time field conditionally, only when that field is empty? That way the date time stamp will be applied just once.Hope it helps.
1107
Views
0
Likes
0
Answers
Re: Javascript code for submit email based on dropdown selection sergiy2511 - Adobe LiveCycle
Switch syntax would look something like below:switch (this.getField("County").value) { default: recipient_email = "default@always.com"; break; case 'county_a': var am_email = "info@countyA_am.net" var dsm_email = "info@countyA_dsm.net" if (am_email == ""){recipient_email = dsm_email} else{recipient_email = am_email} break; case 'county_b': var am_email = "info@countyB_am.net" var dsm_email = "info@countyB_dsm.net" if (am_email == ""){recipient_email = dsm_email} else{recipient_email = am_email} ...
1130
Views
0
Likes
0
Answers
Re: Getting data from dynamic table to email body with Javascript sergiy2511 - Adobe LiveCycle
Morning,first thing I would do is to move your var emailBody = "Attached..." after the tableData loop. Also, if that doesn't help, please let me know if you're getting any error messages in your JS console.
817
Views
0
Likes
0
Answers
Re: Javascript code for submit email based on dropdown selection sergiy2511 - Adobe LiveCycle
Hey, using the model of the email script from a nearby post​ you would need something like belows:var recipient_email = "default_email@this_could_be_empty.too"var county = this.getField("County").valueif (county == "county_A"){recipient_email = "info@countyA.net"}else if(county == "county_B"){recipient_email = "info@countyB.net"} //...repeat for every county's email, you can use switch syntax if preferred.try { myDoc.mailDoc({ bUI: false, cTo: recipient_email, cCC: "Email Addresses", cSubject: s...
1134
Views
0
Likes
0
Answers
Re: Getting data from dynamic table to email body with Javascript sergiy2511 - Adobe LiveCycle
Hi, you would need to use looping to read the data from your table, something like this:var tableData = "" //prepare your variable to collect table datafor (i=0; i < Row.instanceManager.count; i++){ //for every row starting from 0 to the last one in your tabletableData = tableData + this.resolveNode("Table.Row[" + i + "].Column1.rawValue + " " + this.resolveNode("Table.Row[" + i + "].Column2.rawValue + " " + this.resolveNode("Table.Row[" + i + "].Column3.rawValue + "\n"; //collect the data from ...
805
Views
0
Likes
0
Answers
Re: Trouble with mandatory fields in subforms with .presence = "inactive"; sergiy2511 - Adobe LiveCycle
Hi, it looks like you need to modify the scripts controlling the optional subforms appearance. When your logic shows the subform, make your fields in this subform required by adding something likeField.mandatory = "error"; - to make mandatorywhen your condition is hiding the subform, addField.mandatory = "disabled"; - to make optionalI hope it helps.
659
Views
0
Likes
0
Answers
Re: Table pagination sergiy2511 - Adobe LiveCycle
Make sure you have a flowed page subform so it can actually flow to the next page. If you want to have a page break within the cell of the row, you need to make sure that content break is allowed for cell, and for all parent objects too
613
Views
0
Likes
0
Answers
Re: Subform Instances are Not Retained After Saving sergiy2511 - Adobe LiveCycle
Thank you for sharing it, my bet is that cause for your trouble is missing Data nodes in your scheme file.See how your next piece of multi-instance subforms has specific node connection, while it's totally missing in S11 part:I hope it will help to solve the issue.
1080
Views
0
Likes
0
Answers
Re: Subform Instances are Not Retained After Saving sergiy2511 - Adobe LiveCycle
Can you share your form?
1071
Views
0
Likes
0
Answers
Re: PDF file made by Adobe Livecycle Designer - how to edit? sergiy2511 - Adobe LiveCycle
No, there are no MacOS versions of LiveCycle Designer.
1573
Views
0
Likes
0
Answers
Re: PDF file made by Adobe Livecycle Designer - how to edit? sergiy2511 - Adobe LiveCycle
You may want to check out this post LiveCycle Blog: AEM Forms Designer Demoversion//AEM Forms Designer Trial
1572
Views
0
Likes
0
Answers
Re: Maintaing the position of a table on a form as it flows to subsequent pages. sergiy2511 - Adobe LiveCycle
Can you make your text field as a first column of your table? Or you can even add two columns on the left side, one being your text field and second for spacing to separate it from the table columns
581
Views
0
Likes
0
Answers
Re: Calculate Script sergiy2511 - Adobe LiveCycle
Thank you for sharing these, unfortunately I don't see the objects tree on your screenshot. It should appear on the left side if you click Shift+F11. You are also welcome to share your form (if possible) so I can check into it.We'll definitely solve that issue
610
Views
0
Likes
0
Answers
Re: Calculate Script sergiy2511 - Adobe LiveCycle
Can you share a screenshot of your objects tree and your script, please?
630
Views
0
Likes
0
Answers
Re: "CC" an Email Address Based on Radio Button Selection sergiy2511 - Adobe LiveCycle
Hi, you need to conditionally determine your vCC variable, after your var vCC = ""; put something like this:if (your condition){vCC = "email@youwanttobe.ccd"}
754
Views
0
Likes
0
Answers
Re: livecycle install failure sergiy2511 - Adobe LiveCycle
is there any solution to this issue? I'm experiencing the same behaviour and reinstalling didn't help. I did the System File Checker, it found some errors, but it helped nothing. Please share the solution.Kind regards,Sergii.
826
Views
0
Likes
0
Answers