I would like to compliment you on the way you present your tutorials. You make them very understandable to people who have limited knowledge of the topics you are discussing. I am finding them invaluable in learning how to work with the LiveCycle Designer ES4 program. I was having a difficult time trying to understand how to use this wonderful tool based on the written instruction given in the Adobe help for the program. Thank you so much. Do you do any training related to php?
Your tutorials are very helpful! Thank you so much. I'm looking for a way ( and maybe you have a tutorial and I just haven't come across it yet - if so, just point me in that direction ) to change a field to required based on the user's selection from a series of radio buttons. For example, the user can select option 1 or 2 and nothing further is required; however, if they choose option 3, then they need to supply further information in a required field.
I have a table to input information related to accomplishing a "goal" I would like to be able to duplicate the whole table rather than a row to accommodate additional goals. In addition I would need to be able to remove the table if they did not need it. Thank you in advance for your assistance.
Interesting problem...I'm not sure how to do this with FormCalc. JavaScript, however, has an array function that sorts. So, to make it work you would need to read each value into an array; sort the array; and then use the new array order as the index of your "places". var placesArray = [Table1.entrys.resolveNode("Row1[0]").Poles,... placesArray.sort(); (then some type of loop to iterate through the array and display the order the way you need). Contact me through my blog to get more specifics.
Great Videos! Thanks so much. Can you direct me to one that specifically addresses using script to populate text fields with multi-select listboxes? I'd like users to select multiple items from a list box and each selection made goes into a text field. I've set up my listbox to enable multiple selections but now I'm confused on the code to populate the text field. Thoughts?
I have an expanding form to calculate 1st thru 5th place on timed events. I use a footer row for my places. The following code in FormCalc determines the minimum value in my String of Numeric Fields: rawValue = Min(Table1.entrys.Row1[*].Poles); which works fine for the minimum (1st place time) times. However, I am having a hard time figuring out a code to calculate the following places (2nd, 3rd, 4th, etc.). Can you advise me of a code or the best method to complete these calculations?
Great video. How to I get a reference to the custom properties as well as the title and author and stuff like that? My goal is to set the text box value to the value of the custom property.
+Jesse Seger I suspect that those "metadata" fields are off limits to scripts. Abode "sandboxes" Javascript pretty heavily to protect against malicious code being launched from a form.
Thanks for the tutorial! I have a question. If I have a repeating row in a table with a Text Field, how do I reference it and each instance of it on a field in another part of the form? Right now I am using global binding to solve single instances but that won't work on a repeating row. Oh, and how do I add a line break after each instance in the new field? Thanks!
1) This is where the resolveNode() function is most useful. So to reference the rawValue of Cell1 in the 3rd instance of Row1 in Table1 you would type: form1.Page1.Table1.resolveNode("Row1[0]").Cell1.rawValue ResolveNode() serves as a container so the brackets [ ] don't get interpreted by javascript as a call to an array. 2)Not exactly sure what you are referring to here, but if you mean you want to add a "carriage return" to a string of text you would need to add to the end of the string. So: form1.Page1.Table1.resolveNode("Row1[0]").Cell1.rawValue = "This is a test. "; Would add a string of text "This is a test." and a blank line below (assume the textfield is set to allow multiple lines.)
Your question makes me suspect you do not understand my answer above. The Cell1 can be a textfield or whatever you want make it...the object reference wouldn't change.
You say you want a value to copy to some other field "automatically", but the real question is "when"? If you want it to happen every time the field changes, I would use the "exit" event. All this discussion is a bit too specific to help other comments readers, if you want specific help I suggest you contact me via my blog and we can correspond via email.
I would like to know how to: the form is set up to ask a user for a date (say OrderDate), then later on the form is another field - this field will be 365 days/1-year later (ExpireDate) - - how do I write the code in LifeCycle Designer for AdobePro XI?
In the "calculate" event of the ExpireDate field, you would need something like the following javascript: if(OrderDate.rawValue!= null){ beginDate = Date.parse(OrderDate.rawValue); oneYear = 1000*60*60*24*365; d = new Date(); d.setTime(beginDate + oneYear); this.rawValue = (d.getMonth()+1)+ "/" + d.getDay() + "/" + (d.getYear().toString().slice(1,3)); }