since ‎30-04-2008
‎10-12-2019
pmcalex
Level 2
Re: FORMCALC (or JS) Default date today with user override questions pmcalex - Adobe LiveCycle
Thank you so much! That was exactly the info I needed to resolve!!!In case anyone needs it in the future, here's the JS:if (this.rawValue == null){ var msNow = (new Date()).getTime(); var d1 = new Date(msNow); this.rawValue = util.printd("mm/dd/yyyy", d1);}else { this.rawValue = rawValue; }
1063
Views
1
Like
0
Replies
Re: FORMCALC (or JS) Default date today with user override questions pmcalex - Adobe LiveCycle
I'm having the same problem as described above but I am using JavaScript to reflect the current date: var msNow = (new Date()).getTime(); var d1 = new Date(msNow); this.rawValue = util.printd("mm/dd/yyyy", d1);The user can override the current date and save the form, BUT when the form is reopened it will run again and insert the current date over the user entered date.(I've tried several variations of "if (this.isNull)" to the above code which results in "01/00/0000" when opening the saved form ...
1063
Views
0
Likes
0
Replies
Re: Image fields in LifeCycle 8.0 pmcalex - Adobe LiveCycle
Did you ever find resolution to this?I am having same issue with images out of proportion even though the "scale image proportionately" sizing option is checked.
126
Views
0
Likes
0
Replies
Re: Dynamic row numbering pmcalex - Adobe LiveCycle
Did you ever find out if there is a way to recalculate everything in one table/subform and not the entire form?I am having the same issue using xfa.form.recalculate(1); and trying to find a way to have automatic row/subform numbering without losing previously calculated data.
104
Views
0
Likes
0
Replies
Re: showing and not showing page while printing pmcalex - Adobe LiveCycle
One way you could do this would be to hide the page that you do not want to print by using the following code in the prePrint event:form1.Page1.presence = "hidden"; Then in the postPrint event, make the page visible again:form1.Page1.presence = "visible";Hope that helps.
113
Views
0
Likes
0
Replies
Re: JavaScript check box state: if/else pmcalex - Adobe LiveCycle
Try placing this in the change event of the checkbox:if (this.rawValue == 1){TextField1.presence = "visible";}else if (this.rawValue == 0) { TextField1.presence = "invisible"; }Good luck!!
1013
Views
0
Likes
0
Replies
Drop Down List using presence property script AND Allow Custom Text Entry? pmcalex - Adobe LiveCycle
I have a form with a drop down list. When a particular item is selected from the drop down list, a corresponding text box becomes visible. (This presence property script is in the drop down change event.) This feature works perfectly.Now I also need to allow for custom text entry on this same drop down list, but when I check Allow Custom Text Entry only one character can be typed into the drop down list on the form. Is there a way to use both of these features in the same drop down list???(If I ...
320
Views
0
Likes
1
Replies
Re: Set default folder to select image when browsing pmcalex - Adobe LiveCycle
I've had no response to this question and found a similar post from Dec 2005 http://www.adobeforums.com/webx/.3bbdc19d/1 that also did not have a solution. Does anyone know if/how I can have the filebrowser open in a specified folder?
182
Views
0
Likes
0
Replies
Re: open filebrowser in specific folder pmcalex - Adobe LiveCycle
Did you ever get a response to this? I am searching for the same info.
311
Views
0
Likes
0
Replies
Set default folder to select image when browsing pmcalex - Adobe LiveCycle
Is there a way to set the default folder in JavaScript so that when the user clicks on an image field they will be browsing in the correct folder to select their image file?I have a form that will be used in-house and would like the user to be able to browse an image folder we have on our local network when the image field is clicked.I have tried using the following code in the click event with no luck:xfa.resolveNode("form1.Page1.sfBody.txtImage").href = "O:\Pictures\"; Does anyone know if ther...
348
Views
0
Likes
1
Replies
Re: unlimited text in form field pmcalex - Adobe LiveCycle
You can do this by changing the subform content (containing your textfield) to flowed. Check this forum for discussions on this subject.
90
Views
0
Likes
0
Replies
Re: User entered Variables pmcalex - Adobe LiveCycle
Set the default binding (in the Object palette, binding tab) of the text field where the user enters data to Global. Then create other text fields with that same name and place anywhere you want that user entered data to appear. Once the user types in data it will also appear in corresponding locations.Hope this helps!
107
Views
0
Likes
0
Replies
Re: Making a printable return envelope attatched to form pmcalex - Adobe LiveCycle
Did you ever find out how to do this? I have designed an envelope that populates with client address that the user will need to print from the envelope tray of the printer.
106
Views
0
Likes
0
Replies
PLEASE help with JavaScript parsing of WSDL return pmcalex - Adobe LiveCycle
Can someone help with parsing return WSDL data? My return WSDL data is a concatenated string of alias names (firstname middlename lastname generation) delininated with an "@":7433|ALIAS|John|W|Smith| @7432|ALIAS|Johnny| |Smith| @7430|ALIAS|JJ| |Smithers| @7431|ALIAS|JJ| |Smith| @7400|ALIAS|Jon| |Smith| @7416|ALIAS|John|Wilber|Smith|JRI must have these names appear on my forms in a "lastname, firstname middlename generation" format. Can anyone provide expertise in this area if I provide the table...
368
Views
0
Likes
0
Replies
Re: Linking within a PDF pmcalex - Adobe LiveCycle
Thank you! That points me in the right direction 🙂
190
Views
0
Likes
0
Replies
Re: Linking within a PDF pmcalex - Adobe LiveCycle
I also need to provide a link to another location within the same form. Is there a way to do this?
190
Views
0
Likes
0
Replies
Error: File does not begin with ' pmcalex - Adobe LiveCycle
After changing two javascript "else if" statements to "if" in an Adobe LiveCycle v8 form, I received errors upon saving. Now the file seems to be corrupt because when I attempt to open it I get an error stating "File does not begin with '". Does anyone know what could be causing this AND MORE IMPORTANTLY if there is a way to salvage my form? Please help!
305
Views
0
Likes
0
Replies
Re: JavaScript Help / if else statement / regular expression pmcalex - Adobe LiveCycle
Thank you for the response:-) I'm using Adobe LiveCycle v8. I removed the two "else if" and replaced with "if", but now it always executes the last line of code, "Cathy" (even though condition is false). I tested each variable again and only Carol returns true on the Client Last Name I am using. Does anyone know what else is wrong in my script?var FLU1 = /(^[A-G])/ var FLU2 = /(^[H-O]|P[a-e])/ var FLU3 = /(^P[f-z]|[Q-Z])/ if (FLU1.test(xfa.resolveNode("form1.dbObjects.clientLastName").rawValue)=...
290
Views
0
Likes
0
Replies
JavaScript Help / if else statement / regular expression pmcalex - Adobe LiveCycle
I have a form where the Client Last Name is bound to a data source. I need to provide a copy of the form to a particular person depending upon which letter of the alphabet the Client Last Name begins with (e.g., Carol gets a copy of forms where the client last name begins with A-G, Karen gets a copy of forms where the client last name begins with H-Pe, etc.). I want the correct persons name to appear in the copy notation of the form. I've tested my regular expressions and they are working correc...
4610
Views
0
Likes
4
Replies
Re: Autonumber each instance pmcalex - Adobe LiveCycle
I have successfully used:this.rawValue = parent.index +1;in the calculate event (of the first instance)to show the numbering, and used:xfa.form.recalculate(true);in the click event following the removeInstance AND addInstance codeto readjust the numbering once a row or subform is added or removed.Hope that helps 🙂
164
Views
0
Likes
0
Replies
Re: Making another field visible based on the value selected in a drop-down box pmcalex - Adobe LiveCycle
I've attached the actual code that is working in my form (in case you see something else in it that might help you). Since I have only been using LiveCycle Designer v8 for a very short time I'm unable to provide further assistance with your error. Sorry, I know how frustrating it can be. Hopefully someone else can offer assistance.----- form1.Page1.sfColumn2.cboTimeOffense::change: - (JavaScript, client) -------------------------if (xfa.event.newText == "Other"){form1.Page1.sfColumn2.txtSpecifyT...
254
Views
0
Likes
0
Replies
Re: Making another field visible based on the value selected in a drop-down box pmcalex - Adobe LiveCycle
I have successfully used the following code on one of my forms (but I am using version 8). It is simple (no assigning of values) but it may give you a starting point anyway. For clarification, "Other" is the actual text of my list item choice.Just add this to the change event of your drop down list replacing "Other" with the actual text of your "Value B" list item:if (xfa.event.newText == "Other"){form1.#subform[0].BillingID.presence = "visible";}else{form1.#subform[0].BillingID.presence = "invi...
254
Views
0
Likes
0
Replies
Re: Dynamic Text Fields pmcalex - Adobe LiveCycle
Kelly,Besides checking the box for Allow Multiple Lines, you will also need to check the box for Limit Length to Visible Area (to get rid of the plus sign). If you do this, once you exit the text box all of the data will show.If the data will be rather lengthy, you may need to look into using a flowed subform to contain the text box so the data can flow onto additional pages.
1214
Views
0
Likes
7
Replies
Re: text-transform: uppercase pmcalex - Adobe LiveCycle
Thank you for the information---that's way over my head though. Does anyone have a function that could be shared that is known to work in LiveCycle Designer?
267
Views
0
Likes
0
Replies
Re: text-transform: uppercase pmcalex - Adobe LiveCycle
Does anyone know how to change the format of a text string to Title Case?On my form the text comes in (binding) as all Upper Case and I need it to appear in Title Case.I have successfully used this.rawValue = this.rawValue.toUpperCase(); and this.rawValue = this.rawValue.toLowerCase(); to convert text to Upper or Lower Case but I have been unsuccessful at converting to Title Case. Does anyone know how to do this?
267
Views
0
Likes
0
Replies
User Entered Data Lost Upon Adding New Instance of Row / Subform pmcalex - Adobe LiveCycle
I'm struggling to solve a problem I've run into with repeating subforms and didn't see a previous posting.I have a repeating subform that the user adds multiple line text to, then adds other instances of the subform as needed and adds text to them. The problem is when the third instance of the subform is added, the data in the second instance is lost. (The three subforms remain but the only data left is in the initial instance.)Does anyone know where I've gone wrong?
298
Views
0
Likes
1
Replies
Re: How to get rid of extra space at beginning of multiline field pmcalex - Adobe LiveCycle
Thank you. This function works great but I'm having trouble getting it to work when adding an instance of a repeating subform. The field in my original subform does not contain the extra space so the function is working, but when the user adds additional instances of the subform the field contained within the subform contains the extra space. Any ideas on a fix for this?
132
Views
0
Likes
0
Replies
Likes from