Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Jo_2005
Community profile Jo_2005 Level 3
Job title here
Location here
10 BADGES
Level 3

Level 3

Learn more
Joined the community 05-05-2009 10:58:18 PM
Offline
Top badges earned by Jo_2005
Customize the badges you want to showcase on your profile
Re: Save As Script with predefined path and file name
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your help.I have created a folder level javascript and referenced the event.target.mySaveDoc(event.target); in the exit event of the field.The leave form will now save to the users local c drive.Your kind assistance is most appreciated.

Views

1.2K

Likes

0

Replies

0
Re: Make all text fields read only after signing form
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your help.I found "lock fields after signing" in the object pallete (for the signature field) and clicking on the signature tab.Best regardsJo

Views

472

Likes

0

Replies

0
Make all text fields read only after signing form
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a live cycle form which needs to have all of the text fields set as read only after signing.The java script has been placed in the post sign event of a digital signature field.for(var i=0;i

Views

1.7K

Likes

0

Replies

2
Re: How to display a Clock in a form using LiveCycle
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have used your script to place a systems clock in an agenda form.I need to use the systems clock with a formcalculation to show an alert 2 minutes before a finish time field is up.The clock stops after a matter of seconds on initializing the form.Can you please refer to the discussion provided in the link and advise how to make the clock keep time, and if possible advise how I can show an alert two minutes before the finish time field is up?Any advice will be most appreciated.Thank youSe...

Views

432

Likes

0

Replies

0
Re: Send Message alert for a time field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
thank you for your help.I have changed the current time field form calc script to a form ready javascript to show a clock with the current time:pathToField="xfa.form.form1.ActionsHeaderFrame.clock";var t = app.setInterval("obj=new Date();"+pathToField+".rawValue=obj.getHours()+':'+obj.getMinutes()+':'+obj.getSeconds();", 1000); I have changed the formcalc script to suit, but the alert is still not coming up 2 minutes before the finish time.var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:M...

Views

240

Likes

0

Replies

0
Re: Send Message alert for a time field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you for your reply.I have modified the script as you have suggested:var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:MM") // this is the finish timevar vSec = 2 * 60 * 1000 // time in milliseconds - which is 2 minutesvar vFinish = vEnd - vSec // take away the finish time from 2 minutes to give a new time to trigger to alertvar vcurrent = Time2Num(DateTimeField1.formattedValue, "HH:MM") // this is the current time fieldform1.ActionsHeaderFrame.DateTimeField1.execCalculate() // recalcu...

Views

241

Likes

0

Replies

0
Send Message alert for a time field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a finish time field in a memorandum agenda form which I would like an alert (message) sent 2 minutes before the finish time expires.The script has an error message for the "," on line 4.var vEnd = Time2Num(ActionsEndTime.formattedValue, "HH:MM") // this is the finish timevar vSec = 2 * 60 * 1000 // time in milliseconds - which is 2 minutesvar vFinish = vEnd - vSec // take away the finish time from 2 minutes to give a new time to trigger to alertvar vcurrent = form1.ActionsHeaderFram...

Views

1.8K

Likes

0

Replies

5
Re: Calculate End Time from a Start Time and Minutes Allocated
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for the working sample.I have been able to revise my form so that after the allocated time is entered (numeric field), the start time field will populate with the current time and the end time will populate with the finished time.var vStart = Time2Num(ActionsStartTime.formattedValue, "h:MM A")var vTime = ActionsTime * 60 * 1000var vFinish = vStart + vTime if (HasValue(ActionsTime) & HasValue(ActionsStartTime) ) then $ = Num2Time(vFinish, "HH:MM") else""endifYour help and assi...

Views

402

Likes

0

Replies

0
Re: Calculate End Time from a Start Time and Minutes Allocated
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your assistance.I have changed the allocated time field (ActionsTime) to a binding time field.In the End Time Field (ActionsEndTime) I have changed the formcalc function as follows:var Min1 = Time2Num(ActionsTime.formattedValue, "HH:MM")var Start1 = Time2Num(ActionsStartTime.formattedValue, "h:MM A") $ = Num2Time((Start1 + Min1), "H:MM A")The result with user input:Allocated time field input of 00:10 which is equal to (10 minutes)Start time field 10:41 AMEnd time Field re...

Views

354

Likes

0

Replies

0
Calculate End Time from a Start Time and Minutes Allocated
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a meeting form which needs to have the finish time calculated from a start time and allocated time (in minutes).The allocated time is a text field with the default of "00:00". The user can then enter the number of minutes for the agenda item to take. eg 00:20 would be 20 minutes.The start time is a date/time calculated field which shows the current time after the allocated time has been entered. The formcalc script is :form1.ActionsHeaderFrame.ActionsStartTime.rawValue= num2time(Tim...

Views

1.8K

Likes

0

Replies

8
Re: How to reference to the raw value of a text box entered in a new row
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you for your assistance, the form is adding rows and placing the raw value in a list box and the height is increased.var vRows = xfa.form.form1.AgendaMatrixFrame._AgendaMatrixRow.count; // look at number of rowsvar vCurrentRow;var vLength = this.length;// increases the heightvar h_ = 45 + ((vLength - 6)*5);h_ = h_.toString() + "mm"; xfa.form.form1.ActionsAgendaFrame.ActionsAgenda.rawValue = null;xfa.form.form1.ActionsAgendaFrame.ActionsAgenda.clearItems(); for (var i=0; i

Views

481

Likes

0

Replies

0
Re: How to reference to the raw value of a text box entered in a new row
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for all your help, it has been greatly appreciated.I have been able to successfully add the raw value for new rows.I changed the text box to a list box as guided by your example for this to work.var vRows = xfa.form.form1.AgendaMatrixFrame._AgendaMatrixRow.count; // look at number of rowsvar vCurrentRow;xfa.form.form1.ActionsAgendaFrame.ActionsAgenda.rawValue = null;xfa.form.form1.ActionsAgendaFrame.ActionsAgenda.clearItems();for (var i=0; i

Views

483

Likes

0

Replies

0
Re: How to reference to the raw value of a text box entered in a new row
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your help.Thank you for your help. I have used the dynamic java script which works fine.The script will list the last row, however when a new row is added, the existing row gets over written.I have added a variable for a carriage return, and now the script puts a line feed without the raw value.Can you please advise how the script can be amended to list all items associated with the radio button when they are added?var i = AgendaMatrixFrame._AgendaMatrixRow.count - 1; // ...

Views

482

Likes

0

Replies

0
How to reference to the raw value of a text box entered in a new row
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a livecycle form with a text box and radio buttons.There is another section of the form which shows the raw value of the text box when the radio button is clicked.The formcalc script works correctly for the first row.if (xfa.form.form1[0].AgendaMatrixFrame[0].AgendaMatrixRow[0].AgendaRadios[0].ActionRadio[0] == 1) thenxfa.form.form1.AgendaMatrixFrame.AgendaMatrixRow.AgendaItem.rawValueelse""endifThere is another button when pressed will add a new row to the form. This javascript wor...

Views

2.9K

Likes

0

Replies

6
Re: Place a value from a xfa host response to a text box form field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your help, I appreciate the time you have taken.

Views

243

Likes

0

Replies

0
Re: Place a value from a xfa host response to a text box form field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your help, success at last.I have revised my script and the value from the response dialog has been included in the text box field.Revised script as follows:if (Annual_Leave.rawValue == "1"){var p = xfa.host.messageBox("Does your leave application include public holidays?","Public Holidays",2,2);if (p==4){var q = xfa.host.response("Enter the number of public holidays included in your leave period!","Number of Public Holidays"); xfa.form.topmostSubform.Page1.Public_Holiday...

Views

243

Likes

0

Replies

0
Place a value from a xfa host response to a text box form field
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
I have an annual leave form which has numerous types of leave to select with check boxes.If the annual leave check box is marked then a message box will prompt the user if public holidays are to be included.The user will populate the response field with the number of public holidays included in a leave period.I would then like the user input (number of public holidays) from the response field to be placed in a separate text box on the form.The message box and response box appears to be working a...

Views

1.3K

Likes

0

Replies

4
Re: Save As - Not Allowed Security Error
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello Reena,I have modifed the script and it is now working.I have placed the following script into the javascript folder:var mySaveDoc = app.trustedFunction(function(doc) { app.beginPriv(); var myPath = app.getPath("user", "documents") + "/" + "Leave Application" + " " + empname + ".pdf"; // saveAs is the only privileged code that needs to be enclosed // with beginPriv/endPriv doc.saveAs(myPath); app.endPriv();});The following script is placed in the exit event of the livecycle form field:empna...

Views

455

Like

1

Replies

0
Re: Save As - Not Allowed Security Error
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
.

Views

456

Likes

0

Replies

0
Re: Save As - Not Allowed Security Error
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you for your reply.I have removed the trusted function from script and referenced the field in a variable.var myDoc = event.target;var appname = event.target.xfa.resolveNode(topmostSubform[0].Page1[0].Applicants_Name[0]).rawValue.toString(); myDoc.saveAs("/c/forms/Template/Leave Application "+ appname + ".pdf");I now have a an error for the field as follows:topmostSubform[0] has no properties3:XFA:topmostSubform[0]:Page1[0]:Applicants_Name[0]:exitException in line 3 of function top_level, ...

Views

440

Likes

0

Replies

0
Save As - Not Allowed Security Error
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a script to save a livecycle form with a predefined path and file name.However there is a Not allowed Error: Security settings prevent access to this property or method.I am not sure why the security error is still there when a trusted function is used.Can someone please provide some assistance with the script to advise where it could be going wrong?mySaveAs= app.trustPropagatorFunction(function(doc,path){app.beginPriv();doc.saveAs(path);app.endPriv();})myTrustedSpecialTaskFunc= app...

Views

6.1K

Likes

0

Replies

6
Re: Save As Script with predefined path and file name
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you for your reply.I have changed the script from this.saveAs to event.target.saveAs as follows:event.target.saveAs("/c/forms/Template/Leave Application " + Applicants_Name.rawValue + ".pdf");I now get the error as follows:NotAllowedError: Security settings prevent access to this property or method.Can you please offer any advice on if a trusted function would fix this, and how to use trusted function with saveAs?Thank you.

Views

1.1K

Likes

0

Replies

0
Save As Script with predefined path and file name
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,Livecycle version: 8.2.1.4029.1.523496The aim of the script I have is to save the livecycle form to a predefined directory and using the values of a text field in the file name.The script is placed in an exit event on a field using javascript as follows:this.saveAs("/c/forms/Template/Leave Application " + Applicants_Name.rawValue".pdf");The script does not work.Can any one please provide some assistance with correcting my script?Any help will be most appreciated.

Views

11.1K

Likes

0

Replies

6
Re: How to perform an action when the "OK" button is clicked on a xfa.host.response script
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Thank you very much for your assistance Yan.The script works by entering the value from the response dialog box into the field when the OK button is clicked."Excellent Script Yan - Thanks".

Views

203

Likes

0

Replies

0
How to perform an action when the "OK" button is clicked on a xfa.host.response script
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello,I have a script that when a field is exited without user data that a response script is evoked. When the user has entered the required data into the dialog box and the OK button is clicked I would like the user data entered into the field as a value.Can anyone please advise how this can be accomplished?The script is listed as follows:// If this field is exited without the user entering data the following message will appearif (Employee_ID.rawValue == null){xfa.host.response ("This is a man...

Views

625

Likes

0

Replies

2
Re: Calculate the number of week days between two dates
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello Steve,I have revised the script to take into account that if the start date and end date are the same that the total of days will = 1.Before being revised the script would not calculate the number of days if start and end date were the same.The revised script is posted as below for reference:// Weekdays field *This will subtract the total days - the weekend days to give the total number of weekdays between two dates*if (HasValue(Start_Date1) & HasValue(End_Date1) ) then if (Date2Num(End_Da...

Views

994

Like

1

Replies

0
Re: Calculate the number of week days between two dates
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello Steve,I have adapted the changes to the script in my form and the number of working days are now calculating between the two dates.Thank you Steve, you are an absolute legend.

Views

997

Likes

0

Replies

0
Re: Calculate the number of week days between two dates
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello Steve,I have one last question for you.I would like to change the date format from YYYY-MM-DD to DD-MM-YYYY.The Start_Date1 and End_Date1 pattern fields have been changed to the new format of DD-MM-YYYY.I have also revised the form calcs in Weekend Days and Total Days to the format of DD-MM-YYYY.The script will not calculate the number of days after changing the date format.Can you please advise what the problem could be?Thank you once again, Steve.

Views

994

Likes

0

Replies

0
Re: Calculate the number of week days between two dates
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Hello Steve,I have changed the display and validation pattern in the fields of Start_Date1 and End_Date1 to YYYY-MM-DD and the scripting works a treat.Thank you very much for all of your help Steve, it is very much appreciated.

Views

996

Likes

0

Replies

0
Re: Calculate the number of week days between two dates
Avatar
Give Back 10
Level 3
Jo_2005
Level 3

Likes

4 likes

Total Posts

31 posts

Correct reply

0 solutions
Top badges earned
Give Back 10
Ignite 5
Give Back 5
Ignite 3
Give Back 3
View profile
Jo_2005
- Adobe LiveCycle
Dear Steve,Thank you very much for your reply. I have placed the script into my calculation field called "days1".There is an error message when the pdf is previewed.I have attached the error message on a file for you to look at to see where I could be going wrong.eg. syntax error near token " on line 2, column 0.Thank you for your assistance.

Views

996

Likes

0

Replies

0