since ‎07-08-2013
Online
Magus069
MVP
Re: Re; Reset a form based on users checkbox selection
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Well then you might want to specify inside the resetData function which subform(s) you want to reset like I showed previously. Ensure that all subforms you insert are the ones you want to reset only, which should exclude any subform containing the canopy subform.

Views

38

Likes

0

Replies

0
Re: Re; Reset a form based on users checkbox selection
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, First, do you have any experience with the software or JavaScript?By the look of it, you seem to be working with radio buttons instead of check boxes. Radio buttons is a list of items which the user can only select 1 at a time. This is only technical question to start with, no intention to offense you. To reset a form, you can always use the method xfa.host.resetData(); which will reset all fields to default value.This method will also remove the user's new selection. To be able to res...

Views

62

Likes

0

Replies

2
Re: I want to create a field that includes information from 2 other fields
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, you can simply put your cursor in the calculate script of the field you want those value to appear, hold down ctrl+left click on the field you want to add the value from. This will write down the exact reference syntax needed to access that field. From there you can use either rawValue or formattedValue depending on which type of value you want to display and concatenate them by using the plus sign... it could look something like the following:SerialNumber.rawValue + " " + Date_Time.fo...

Views

86

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
The reference syntax is not good. As you are trying to access each countries drop down fields they are included within a subform... to be able to access those fields you would have to write in front of each of them frmCountries and then access the drop down field. So the reference syntax to access the presence would look like this: frmCountries.ddCountryAfrica.presence

Views

76

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Make sure your syntax is good, check the javascript console using adobe acrobat to see if any error pops up, and make sure that you change the name of the dropdown you are checking the value from

Views

90

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, have a look at how I split the countries from a continent into multiple drop downs to be able to have mutiple lists. But it only displays the selected continent countries. https://gofile.io/d/8eMiUG

Views

114

Likes

0

Replies

0
Re: How do I lock all fields on submitting form?
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, I am sorry I kind of mislead you here, as I thought you were handling things a bit differently.By the look of how you are doing things it is much simpler than I said.Technically there would be two things you need to consider, because I found an error while trying to fill in your form. 1st: As soon as the user hits submit and there's a field in the form that isn't valid, the form will stay read only because you set it "protected" inside the preSubmit event of the submit button.To avoid ...

Views

44

Likes

0

Replies

1
Re: How do I lock all fields on submitting form?
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Yes you can, I'm sorry I forgot to reply this thread.

Views

52

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
You can use any tool that allows you to store files on a cloud, such as DropBox, OneDrive, Google Drive, etc. and leave the link in comment

Views

143

Likes

0

Replies

0
Betreff: Hidding table row - presence = "hidden" not working
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
To be honest, his example is not fixing your error, but simply showing how it works with subforms... Your problem using a Table and Rows, is entirely different from simply changing the parent's subform to Flowed content.

Views

89

Likes

0

Replies

0
Re: FormCalc error messages after signing (and locking) f...
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, I am not sure how this affect the "access" property of a field, maybe you should verify if there's any difference in the "access" value of the fields once the form is locked.If the value was "readOnly" and changes to another value, you could probably make an if statement to avoid executing the code in that case. Otherwise, the best solution should probably removing the "calculation" property of the field once the form is being locked. I hope this will help.

Views

62

Likes

0

Replies

0
Re: Hidding table row - presence = "hidden" not working
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, it is hard to say why it behaves this way, and without the hierarchy it would be hard to explain and understand... have you tried hiding Table1?I am not sure exactly what you mean by: hiding Line1 is hiding the content only and not the row.

Views

83

Likes

0

Replies

0
Re: How to allow deselecting "multiple" radio buttons via...
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, I've made a function back in the days that technically cycles through all the form to reset only wanted fields only by adding "Exception" names.If you're able to view the code and manipulate you'll be able to do exactly what you want to do.Feel free to ask any question if needed. https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle-discussions/validation-reset-functions-easy-to-manipulate-and-to-change/td-p/158469 Hope this will help.

Views

47

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Maybe I'd be more of help if I can see what you are trying to accomplish, how and with what. Could you share your form so I can take a look?

Views

182

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
I was pretending that the year would be the first dropdown list, and it would make a appear or hide the appropriate drop downs to that year exactly... I should've made the example with make or model first sorry. So in that case, ddlDropDownYYYY is the name of the drop down field. that would contain all the model of a given car brand.

Views

204

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Well for the show/hide option, you simply would have to create a drop down field for each possible lists, and by changing their presence property with "visible" or "hidden" you can display the appropriate list based on the previous selected values.For an example, after you have created each drop down lists and added each items to the appropriate lists, simply have a JavaScript into the exit event of the previous drop down fields that would verify the value selected and then show the right list a...

Views

224

Likes

0

Replies

0
Re: How do I lock all fields on submitting form?
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
I'm sorry I'm not sure what you are trying to accomplish using this code from radzmar for Time field?? Is this related to the same topic of this thread?

Views

89

Likes

0

Replies

0
Re: Adding 30 Business days to a date field
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, I haven't checked out how to do this using FormCalc, but with JavaScript it is do-able.One way to do it would be having a loop to iterate as many times it needs to end up adding 30 working days. This technically will not consider public holidays, if you want to take it in consideration you will need to add in some more details.So here's how I'd do it: //Verify that the value of the date field is different than null if (initDate.rawValue != null){ //Split the year/month/day of the date ...

Views

62

Like

1

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi, well at this point you have 2 different options. Either you create arrays objects with all your items either JavaScript or XML based and load them on the initialize event within the drop down lists. Or you simply create a drop down list field for each different possible lists. One will require you to work out with JavaScript and may requires you to understand a bit more how JavaScript Arrays or JSON/Hash table objects works, or you simply use different fields for each possible lists, and you...

Views

255

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, so how are you storing that data in the form? Are you using arrays within arrays, or maybe JSON objects? How do you determine what item list to use when a value is selected?Once you have selected a value within the first drop down, by extracting the correct items you will populate the next drop down, either by using setItems for the whole array object or addItem for each items from your collection.When a value is changed from a "Previous drop down", you may want to reset the following ...

Views

275

Likes

0

Replies

0
Re: Multiple Dependent Dropdown Menus in ES3
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, It is important to know how is your data stored? How do you request your data to populate your drop down lists? If you populate based on embed form data, it is possible to populate a dropdown list on the exit event of the other, but in my experience I'd rather populate them within their own initialize event, and say as soon as I'd exit the previous drop down, I would execute the following drop down's initialize event like this:Dropdown1.execInitialize(); When doing so it's important to...

Views

148

Like

1

Replies

0
Re: Duplicate pages button does not generate new page
Avatar

Magus069

MVP

Magus069
- Adobe Experience Manager Forms
Hi there, so after reviewing your form, I managed to make this work.The (CurrentandPending) page, will have {Pagination > Place} to be set as "Following Previous"And the top most subform of that page (CurrentandPending_subform), will have {Pagination > Place} to be set as "Top of Page 'Page2'" I hope this will help you.

Views

126

Likes

2

Replies

2
Re: Duplicate pages button does not generate new page
Avatar

Magus069

MVP

Magus069
- Adobe Experience Manager Forms
Hi there, I have a similar form that has 2 different master pages with landscape and portrait. I just tried out with "Top of Page (Page2)" (Page2 as landscape) and it works just fine...I could take a look at it real quick if you wish, but it shouldn't be any more than this.

Views

122

Like

1

Replies

2
Re: How to add button to insert duplicate page in form
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, I am not sure exactly how your form looks like, but after testing a few things, seems like the best thing you can do, would be having that repeatable page with content flow setting as "Positioned" and to use the space of the whole page to be able to make it start next page...Unless you'd be able to make that repeatable page to be included inside the first page a subsequent subform and set the pagination "Top of Page" for that repeatable subform, then it would start on each following pa...

Views

99

Likes

0

Replies

0
Re: How do I lock all fields on submitting form?
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, The following link will explain how to submit a form using JavaScript.https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/ Once you execute the code to submit a form, simply change the value of the checkbox to "checked" like the following://This should work if your checkbox object's value is either 1 or 0 CheckBox1.rawValue = "1"; //If you don't know for sure what's the object's value, you can use this CheckBox1.rawValue = CheckBox1.getDisplayItem(0); Once the ...

Views

134

Likes

0

Replies

0
Re: Doing action after a 'submit' doesn't pass the valida...
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, One way to do this you'd have to use JavaScript to complete the submit along with the validation.See the following link:https://acrobatusers.com/forum/forms-livecycle-designer/modify-submit-button-pick-email-address-fromlivecycle-form-field/ This way you might have to find how to achieve the appropriate validation before executing the submit function.Afterwards, you can do some extra script to your liking. Hope this will help.

Views

65

Likes

0

Replies

0
Re: How do I lock all fields on submitting form?
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, my best bet would be having a checkbox in background with visibility's set as hidden which you would set its value checked once the form is submitted.When your code to set values is executed in the fields, simply verify that the checkbox is unchecked before setting any value. Additionally, you can also have a single statement in the initialize event of each objects to set their access state to readOnly when the checkbox is checked. Hope this will help.

Views

158

Likes

0

Replies

7
Re: Drop down choices changing by themselves after emaili...
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, it's not as easy to pinpoint exactly why it is behaving this way, but by the look of it I might have an idea.Looks like your table is static, I mean you do not duplicate a row by adding / removing rows, so every rows have their respected objects.It is possible that the software misinterpret the data and confuse some fields from one another... since you had the fields copy-pasted, you should make sure to have each fields have a different name. I am not sure if this will fix your problem...

Views

172

Likes

0

Replies

0
Re: Scrip: define the single border of an object
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, it seems like any property edge within the "ui.oneOfChild.border" has only 1 instance that can be modified. In any case that instance would be 0 instead of 2.If you want to modify that specific instance, such as 2, you would need to access directly the border property of the object like the following.$.border.getElement("edge", 2).presence = "visible";the difference between both is the following:accessing the border/edge property of an UI is the borders that represent the field, such a...

Views

103

Likes

0

Replies

0
Re: Issue with Date picker
Avatar

Magus069

MVP

Magus069
- Adobe LiveCycle
Hi there, This is a simple fix actually, because a default date field object in LiveCycle Designer has it default "edit" value as DD/MM/YY, it can only be accurate up to january 1930 because of how javascript is encoded. Therefore, if you want to have this fix, simply go in the patterns window and select the "Edit" tab on top and select the appropriate pattern to reflect the whole data of a date. Essentially you should select the pattern that uses the full length of a year as YYYY. I hope this w...

Views

138

Like

1

Replies

1