Your videos have been so helpful to me in my new job. I have never created form before. I am a beginner and I have learned mainly the basics just enough to get me started to create simple forms. I have been asked to create a form now that I believe is more advanced and I am not even sure if it is such a thing. I was wondering if there is a way to have a drop-down list and once an item is selected from the drop-down list it will show a table with formulas to calculate items. For an example. I need one table with four columns and several rolls for someone who want to select a theatre room. There is certain product that they may rent with the theatre room such as the mics, podiums, speakers, tables, chairs, lights, etc. and they may want to have a quantity of 4 mics, 2 speakers, 1 podium, 30 chairs, and 3 tables. Each item can be rented by quantity. Therefore, I would need a formula in table to calculate the total cost of each item and then add up all the cost at the bottom of the table. So, if a client would like to choose to say the ball field instead of the theatre, then when they select the ball field a table would appear with the product that would pertain to the ball field. So, if they needed 20 baseballs they would type 20 and there is a set amount for each base at the price of say $5 then have it calculate the amount at the end of the row then in the next roll they want to purchase bats or gloves, they enter amount and it calculates at the end of each row then at the end of the column it adds all the totals up. So, I have about 3 or 4 different facilities a client can choose from, but they all have different products that can be rented by the hour or purchased by quantity so there for the tables will be different. So instead of having all the tables on one form. I would like the tables to appear when the type of facility is selected. I hope that makes sense. Is there a way that you can help me create this?
If you set the "commit value immediately, you can use the custom keystroke to set the other combo box as one uses the cursor up and down keys to move up and down the options list.
Thanks for putting up such a wonderful demo. How can we add this dependent dropdown in dynamic table rows? I have tried to used addinstance with a button, but the dependent dropdown script shown in this tutorial does not work for the newly added dynamic rows. Please guide. Thanks
What might be a Javascript to make a dropdown menu expand automatically as soon as you select it ? Even by Tab from another field, no need to click on the arrow on the right
I am having a date picker problem in adobe acorobat dc and reader some versions show and some old versions do not show, how can I display date picker in all versions
Can we have a case where user is allowed to input any value but if that is not in defined database .... The other field should turn blank or else it should appear the corresponding value .... Something similar to lolup function
This is very close to what I am needing. Is there a way to un"hide" pages or elements based on the choices made in the drop down lists? In your example with the cars...if a dealership had a separate page for each model they had in stock, and after making their choices in the drop down lists, it would make visible the pages that matched the criteria chosen.
+Fairfield Homes & Land Sure...this could all be controlled in the script. You would need to create the pages...hide them...and then use a line of code like: form1.HiddenPage.presence = "visible"; The line of code would need to be placed inside the "exit" event "Switch" statement of the last dropdown - inbetween the "Case" "break;" code.
No. You need LiveCycle to create forms that flow. Here is a trial link: ftp://ftp6.adobe.com/pub/adobe/devnet/livecycle/tools/aemforms_designer_6_1_0_wwe_win.zip
Thanks for this tutorial it helped! I would however like to allow my users to also select "Other" as an option in the one dropdown list and then enter a value in the other dropdown list. Is that possible?
Hi Nathan, Your videos have helped me immensely with creating some basic forms so thank you. Im having a little trouble with Livecycle designer 8, I have created a dynamic dropdown which works fine, however the clear.Item script does not seem to be resetting the target box when a choice in the initial box is changed. ----- form1.DEALTICKET.warranty::exit: - (JavaScript, client) -------------------------------------- cover.clearItems(); switch(this.rawValue){ case "1": cover.addItem("3Yrs-3000Hrs"); cover.addItem("4Yrs-4000Hrs"); cover.addItem("5Yrs-5000Hrs"); break; case"2": cover.addItem("4Yrs-4000Hrs"); cover.addItem("5Yrs-5000Hrs"); break; If I choose the 3Yrs-3000Hrs in case 1, then change the option in the warranty dropdown to case 2, the 3Yrs-3000Hrs still remains in the cover dropdown list. I have 8 cases in total and none of them clear the options in the cover dropdown list if changed. Do you have any idea what I may be doing wrong?
Hi I seem to have figured it out so thought id post here just incase anyone else needs the same info. ----- form1.DEALTICKET.warranty::exit: - (JavaScript, client) -------------------------------------- cover.clearItems(); cover.rawValue = " "; excess.clearItems(); excess.rawValue = " "; switch(warranty.rawValue){ case "1": cover.addItem("3Yrs-3000Hrs"); cover.addItem("4Yrs-4000Hrs"); cover.addItem("5Yrs-5000Hrs"); excess.addItem("£0"); excess.addItem("£150"); break; case"2": cover.addItem("4Yrs-4000Hrs"); cover.addItem("5Yrs-5000Hrs"); excess.addItem("£0"); excess.addItem("£150"); break; This script now clears the dependant drop down box if the original selection is amended only showing the currently available list items (and not the previously selected item in the dependant box)
Thanks, very easy to understand, I followed your instructions, everything works. I have a couple of questions as well, once I select a Make & then a particular Model, I cannot go back and make a change in Model as the list of Model disappears after the selection is made. To do so I then have to click the list of Make to get the list of Model to reappear in the Model drop-down. Another issue is if I make a selection of a Make and then a Model. After this, if I change the Make, the last model number in the Model field still stays there. Is there a fix for these two.
Hi, Is there a way to do this using Adobe Acrobat Pro DC? I know you can edit java scripts, and such, but I'm not sure how to incorporate this as an exit event.
This is exactly what I want, but I am having trouble squinting to read the code on your example. A sample of the code in your description or link to it would be very helpful. I personally have trouble reading small font.
Great tutorial! I do have one question though. Is there a way to make the default selection to be the first item instead of a blank? I like to make the first choice always "Select from List" - I just think it makes the form look more professional.
+Tiffany Groce Yes. If you have the dropdown selected look at the Object >Value tab. Here there is a dropdown selector labeled Default: where you can choose any item already added to the dropdown as the automatically selected one.
Thanks for the video! I wrote the code in and it worked great. The only issue I'm having is that the selections being offered do not stay visible in the box. Sounds ridiculous but all visibility settings are there and I can't figure out why it's not staying visible. Can you help?
Thanks for the help. I have a form I am working on in ES4. I am trying to create a Bill of Materials with the ability to have one to many rows (user chooses) description, quantity, part number, unit price, required delivery date. I will have an extended price for each row and then a form total. The total may go across many pages. At the end I have to have signature boxes and overall totals. The problems I am having finding answers to are. Setting permissions in the distributed PDF forms, my preview PDF option is greyed out.
+Daniel Jolin Are you using some type of trial version of the software? Also, check to be sure you are saving as a "dynamic xml pdf". One other thought...you must have Adobe Acrobat (any version) on the computer to preview.
+True Tech Troubleshooting. no I am on a government network NMCI. the world's largest network so secure nobody can use it. I have solved the issues I was having by using ES2 I have on my home system I got with Adobe Web premium CS6. the major issues were with my windows profile on windows 7. I had to rebuild my profile and reinstall. thanks for resonding. I look forward to more of your videos.
I copied the code from your website and just modified the values to match my fields and choices, but no matter which choice I make in the first drop-down, the second drop-down still shows all the choices. I'll keep playing with it, but you are the only source I have found that even addressed these types of dynamic drop-downs online so I don't know where to go from here if I can't get it to work.
Thank you, Nathan! This was extremely helpful. I'm new to LiveCycle. To continue with this example, how would I use the selection in the second dropdown (i.e. Model) to populate the dropdown contents of a third dropdown. More specifically, I'm trying to get the dropdown 1 value to populate dropdown 2, and then the dropdown 2 value to populate dropdown 3. Any assistance you can offer would be greatly appreciated.
+K Buck you can do what you're asking but the JavaScript gets a bit more complex. The script in the second drop-down will have to take into account all choices from drop-down one and any choices of its own. This could create quite a few permutations if there are just five or six choices in each dropdown. Contact me via my website if you need more information.
can you teach also how to create a javascript for searching data, for example i'll just type the employee no. and it will present all the detail for that specific employee.
+Harford Paano This is a complicated topic that is accomplished by using a tandem of "web services" database calls. The basic idea is to setup a simple connection to bring in the employee no. from a database and have them populate a field (such as a dropdown list). Then the second call uses the value the user selects as a "request" value. If configured correctly, this will capture the "row data" for that specific employee, which can then be used to populate other fields (such as Name, address, city, etc.) I have never had the time/energy to setup a sample environment where I could demonstrate via TH-cam, and I obviously cannot use my production data because I do not want to expose real user information to the world on TH-cam.
Sir, I am trying to implement this same thing on ES4 at exit event. The code was copied from your website. I tried changing it according to my requirement and followed all the things correctly which you have shown in the video. However, Still it doesn't work for me. Please help. Also, please let me know if it requires any database binding?
I have created dropdown with the .addItem. Lets say in your situation, you wanted to add multiple instances of the "MODEL" dropdown (since it is based on the Make), how would that be coded?
Instantiation using Javascript is a much more complex topic than simple "case" statements. The code would vary based on where the "MODEL" dropdown was in relation to the "MAKE" dropdown, and what mechanism was being employed to make it repeatable. In other words, is the Page object repeatable? or a subform? or is it a Cell in a repeating row of a table? If this answer creates more questions, you may want to contact me via my blog to get more specific help.
Thanks for the video. Could you please share a example using databases with Excel to fill pdf form like if I select a company name the other fields should get populated like company address. Telephone number. service center.. It would be a great help. If you share a example
Really quick question: What, if any, are the scripting and object (Field, Value, and Binding) properties for the "cboModel" dropdown list? I did my own code and then subsequently copied your code, but neither iteration worked for me.
I watch all of your tutorials and they have been very helpful, thanks! I have a question that I am hoping you can help me answer. I have a form that has a drop down list of products, I want the price, in a separate text field, of the selected product to populate upon user choice/selection in the product drop down list to populate with the correct costs in the price text field. Is this possible?
True Tech Troubleshooting Can you have two different exit events on the same field? I currently have an exit event that effects another drop down field "Color" options based upon their product selection. However, I need the product selection field to also change the "price" field. This is what I have: form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client) Color.clearItems(); switch(this.rawValue){ case"1": Color.addItem("NAVY BLUE"); Color.addItem("LIGHT BLUE"); Color.addItem("ROYAL BLUE"); Color.addItem("TURQUOISE"); Color.addItem("GRAY"); Color.addItem("DARK GRAY"); Color.addItem("TAN"); Color.addItem("YELLOW"); Color.addItem("WHITE"); Color.addItem("BURGANDY"); Color.addItem("RED"); Color.addItem("BLACK"); break; case"2": etc.... How do I write the script to accomplish this.....Like this? form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client) switch(this.rawValue){ case"1": Price.rawValue = 15; break; case"2": Price.rawValue = 20; break; etc...... }
MrMoxie101 You almost have it...just add the Price.rawValue = 15; line beneath the Color.addItem("BLACK"); line. I.E. the exit event can have an endless amount of code beneath it affecting any objects you choose. So here is how I would re-write your code: form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client) Color.clearItems(); switch(this.rawValue){ case"1": Color.addItem("NAVY BLUE"); Color.addItem("LIGHT BLUE"); Color.addItem("ROYAL BLUE"); Color.addItem("TURQUOISE"); Color.addItem("GRAY"); Color.addItem("DARK GRAY"); Color.addItem("TAN"); Color.addItem("YELLOW"); Color.addItem("WHITE"); Color.addItem("BURGANDY"); Color.addItem("RED"); Color.addItem("BLACK"); Price.rawValue = 15; break; case"2": etc.... Have fun!
@@Truetechtroubleshooting if you have the text field in another row of your table, do you have to name the entire path to your text field, i.e. form1.FormBody.OrderArea.Table1.Row2.Price.rawValue = 15; ?
Thank you! I wanted to let you know that these videos are so very helpful! I'm creating this same concept with counties and townships. One question: If a user selects the "Make" and "Model" but then decides to go back and change the "Make," the original "Model" value is still showing. I would like to know how to clear the "Model" value to invite the user to re-select from the "Model" drop-down if they go back and change the "Make" value. If the user goes through these steps they could possibly submit a bad combination of "Make" and "Model". At least that's how mine is working. Can you show us how to fix that? I think someone asked a similar question but I haven't seen a solution yet. If I missed it my apologies.
I actually figured it out. I used the JavaScript in the video then I created an action script saying that whenever the first drop down is changed then set the second drop down to null. Works like a charm.
This was great and easy to follow. How can I use 3 cascading drop downs? Menu 1 drives the value in Menu 2; Menu 2 drive the value options in Menu 3. Is it possible?
I was make everything like in tutorial and it wasn't working. I copied code and find the problem. When you copy the code you have to re-write captions "". :)
this is exactly what I need to do in a form I'm creating and I have copied your code into a template to first attempt to see it work on my own screen. I cannot get the second dropdown box to populate based on the first one. I'm wondering if you wouldn't mind posting a link to the actual template that you used to make the video. This way I could study it deeper and see if I'm missing something. Thanks.
I am trying to use the code and I face the same problem. could you please advise if you have list created in the object property for Model? In my case I hear empty button sound and doesnt display anything -- help please!
I am trying to use the code and I face the same problem. could you please advise if you have list created in the object property for Model? In my case I hear empty button sound and doesn't display anything -- help please!
this was so long ago... but that code didn't need to be hundreds of lines long. Use some arrays, and a for loop (foreach, while loop whatever) and have a method call passing your array... thats for anyone watching this wondering how to add JS to a PDF... im curious for work purposes, never added JS to a PDF before :)
Adobe Acrobat Pro does have the capability to have javascript added to form fields layered on top of flat pdf's. This video shows dynamic pdf's created in Adobe LiveCycle.
I just wanna say thank you for posting this. You just helped me at my job. I appreciate it. :)
Excellent tutorial I have a project at work and this will help me tremendously in accomplishing the goal. You've got a new subscriber.!
Your videos have been so helpful to me in my new job. I have never created form before. I am a beginner and I have learned mainly the basics just enough to get me started to create simple forms. I have been asked to create a form now that I believe is more advanced and I am not even sure if it is such a thing. I was wondering if there is a way to have a drop-down list and once an item is selected from the drop-down list it will show a table with formulas to calculate items. For an example. I need one table with four columns and several rolls for someone who want to select a theatre room. There is certain product that they may rent with the theatre room such as the mics, podiums, speakers, tables, chairs, lights, etc. and they may want to have a quantity of 4 mics, 2 speakers, 1 podium, 30 chairs, and 3 tables. Each item can be rented by quantity. Therefore, I would need a formula in table to calculate the total cost of each item and then add up all the cost at the bottom of the table. So, if a client would like to choose to say the ball field instead of the theatre, then when they select the ball field a table would appear with the product that would pertain to the ball field. So, if they needed 20 baseballs they would type 20 and there is a set amount for each base at the price of say $5 then have it calculate the amount at the end of the row then in the next roll they want to purchase bats or gloves, they enter amount and it calculates at the end of each row then at the end of the column it adds all the totals up. So, I have about 3 or 4 different facilities a client can choose from, but they all have different products that can be rented by the hour or purchased by quantity so there for the tables will be different. So instead of having all the tables on one form. I would like the tables to appear when the type of facility is selected. I hope that makes sense. Is there a way that you can help me create this?
Brilliant stuff, thank you. Would love to see the dropdown populated from a database, have you made that tutorial?
If you set the "commit value immediately, you can use the custom keystroke to set the other combo box as one uses the cursor up and down keys to move up and down the options list.
Thanks for putting up such a wonderful demo. How can we add this dependent dropdown in dynamic table rows? I have tried to used addinstance with a button, but the dependent dropdown script shown in this tutorial does not work for the newly added dynamic rows. Please guide. Thanks
Great demo!
What might be a Javascript to make a dropdown menu expand automatically as soon as you select it ? Even by Tab from another field, no need to click on the arrow on the right
I am having a date picker problem in adobe acorobat dc and reader some versions show and some old versions do not show, how can I display date picker in all versions
Can we have a case where user is allowed to input any value but if that is not in defined database ....
The other field should turn blank or else it should appear the corresponding value .... Something similar to lolup function
This is very close to what I am needing. Is there a way to un"hide" pages or elements based on the choices made in the drop down lists? In your example with the cars...if a dealership had a separate page for each model they had in stock, and after making their choices in the drop down lists, it would make visible the pages that matched the criteria chosen.
+Fairfield Homes & Land Sure...this could all be controlled in the script. You would need to create the pages...hide them...and then use a line of code like: form1.HiddenPage.presence = "visible"; The line of code would need to be placed inside the "exit" event "Switch" statement of the last dropdown - inbetween the "Case" "break;" code.
Can you make a response required using this dynamic dropdown approach? So they can’t accidentally leave the last field that populated blank?
Hi there thank you for this tutorial will also work in ADOBE DC? PDF form?
Is it possible to make a drop down menu that when selected, you then can click a button which links to a corresponding PDF?
I don't have livecycle, will this work without it for my PDF?
No. You need LiveCycle to create forms that flow. Here is a trial link: ftp://ftp6.adobe.com/pub/adobe/devnet/livecycle/tools/aemforms_designer_6_1_0_wwe_win.zip
Thanks for this tutorial it helped! I would however like to allow my users to also select "Other" as an option in the one dropdown list and then enter a value in the other dropdown list. Is that possible?
Very Helpful tutorial , can you please tell me how we can do it dynamically ?
Hi Nathan,
Your videos have helped me immensely with creating some basic forms so thank you. Im having a little trouble with Livecycle designer 8, I have created a dynamic dropdown which works fine, however the clear.Item script does not seem to be resetting the target box when a choice in the initial box is changed.
----- form1.DEALTICKET.warranty::exit: - (JavaScript, client) --------------------------------------
cover.clearItems();
switch(this.rawValue){
case "1":
cover.addItem("3Yrs-3000Hrs");
cover.addItem("4Yrs-4000Hrs");
cover.addItem("5Yrs-5000Hrs");
break;
case"2":
cover.addItem("4Yrs-4000Hrs");
cover.addItem("5Yrs-5000Hrs");
break;
If I choose the 3Yrs-3000Hrs in case 1, then change the option in the warranty dropdown to case 2, the 3Yrs-3000Hrs still remains in the cover dropdown list. I have 8 cases in total and none of them clear the options in the cover dropdown list if changed. Do you have any idea what I may be doing wrong?
Hi
I seem to have figured it out so thought id post here just incase anyone else needs the same info.
----- form1.DEALTICKET.warranty::exit: - (JavaScript, client) --------------------------------------
cover.clearItems();
cover.rawValue = " ";
excess.clearItems();
excess.rawValue = " ";
switch(warranty.rawValue){
case "1":
cover.addItem("3Yrs-3000Hrs");
cover.addItem("4Yrs-4000Hrs");
cover.addItem("5Yrs-5000Hrs");
excess.addItem("£0");
excess.addItem("£150");
break;
case"2":
cover.addItem("4Yrs-4000Hrs");
cover.addItem("5Yrs-5000Hrs");
excess.addItem("£0");
excess.addItem("£150");
break;
This script now clears the dependant drop down box if the original selection is amended only showing the currently available list items (and not the previously selected item in the dependant box)
Thanks, very easy to understand, I followed your instructions, everything works. I have a couple of questions as well, once I select a Make & then a particular Model, I cannot go back and make a change in Model as the list of Model disappears after the selection is made. To do so I then have to click the list of Make to get the list of Model to reappear in the Model drop-down. Another issue is if I make a selection of a Make and then a Model. After this, if I change the Make, the last model number in the Model field still stays there. Is there a fix for these two.
Hai this is great ...... I wanted to know if we can make a dynamic drop down list by reading from an external like excel / text file.
Yes, but that would require a data connection of some type: xml schema, or web service connection.
@@Truetechtroubleshooting if you have a sample can you pls share ?
Hi, Is there a way to do this using Adobe Acrobat Pro DC? I know you can edit java scripts, and such, but I'm not sure how to incorporate this as an exit event.
Kaiti Ray I would like to see a example of database in Adobe Acrobat pro DC. Using Excel
In the code can you assign a value to the items in the model drop down?
This is exactly what I want, but I am having trouble squinting to read the code on your example. A sample of the code in your description or link to it would be very helpful. I personally have trouble reading small font.
Code is too long to leave in description. However, goto my blog to contact me off TH-cam for a copy of the entire pdf.
Thanks a million 👍🏻👏🏻👏🏻
I wish dependent drop down boxes were not so complicated. This form is killing me.
This may help. Thank you
Great tutorial! I do have one question though. Is there a way to make the default selection to be the first item instead of a blank? I like to make the first choice always "Select from List" - I just think it makes the form look more professional.
+Tiffany Groce Yes. If you have the dropdown selected look at the Object >Value tab. Here there is a dropdown selector labeled Default: where you can choose any item already added to the dropdown as the automatically selected one.
Thanks for the video! I wrote the code in and it worked great. The only issue I'm having is that the selections being offered do not stay visible in the box. Sounds ridiculous but all visibility settings are there and I can't figure out why it's not staying visible. Can you help?
Not sure about this issue. Please contact me via the blog to get specific help. Thx.
Thanks for the help. I have a form I am working on in ES4. I am trying to create a Bill of Materials with the ability to have one to many rows (user chooses) description, quantity, part number, unit price, required delivery date. I will have an extended price for each row and then a form total. The total may go across many pages. At the end I have to have signature boxes and overall totals. The problems I am having finding answers to are. Setting permissions in the distributed PDF forms, my preview PDF option is greyed out.
+Daniel Jolin Are you using some type of trial version of the software? Also, check to be sure you are saving as a "dynamic xml pdf". One other thought...you must have Adobe Acrobat (any version) on the computer to preview.
+True Tech Troubleshooting. no I am on a government network NMCI. the world's largest network so secure nobody can use it. I have solved the issues I was having by using ES2 I have on my home system I got with Adobe Web premium CS6. the major issues were with my windows profile on windows 7. I had to rebuild my profile and reinstall. thanks for resonding. I look forward to more of your videos.
I'm having trouble with the binding settings I think and this is causing the list to not narrow down correctly. Is this possible?
Usually the list won't narrow because there is a bug in the code. Be sure you don't have any syntax errors or misplaced punctuation.
I copied the code from your website and just modified the values to match my fields and choices, but no matter which choice I make in the first drop-down, the second drop-down still shows all the choices. I'll keep playing with it, but you are the only source I have found that even addressed these types of dynamic drop-downs online so I don't know where to go from here if I can't get it to work.
Thank you, Nathan!
This was extremely helpful. I'm new to LiveCycle.
To continue with this example, how would I use the selection in the second dropdown (i.e. Model) to populate the dropdown contents of a third dropdown. More specifically, I'm trying to get the dropdown 1 value to populate dropdown 2, and then the dropdown 2 value to populate dropdown 3.
Any assistance you can offer would be greatly appreciated.
+K Buck you can do what you're asking but the JavaScript gets a bit more complex. The script in the second drop-down will have to take into account all choices from drop-down one and any choices of its own. This could create quite a few permutations if there are just five or six choices in each dropdown. Contact me via my website if you need more information.
can you teach also how to create a javascript for searching data, for example i'll just type the employee no. and it will present all the detail for that specific employee.
+Harford Paano This is a complicated topic that is accomplished by using a tandem of "web services" database calls. The basic idea is to setup a simple connection to bring in the employee no. from a database and have them populate a field (such as a dropdown list). Then the second call uses the value the user selects as a "request" value.
If configured correctly, this will capture the "row data" for that specific employee, which can then be used to populate other fields (such as Name, address, city, etc.)
I have never had the time/energy to setup a sample environment where I could demonstrate via TH-cam, and I obviously cannot use my production data because I do not want to expose real user information to the world on TH-cam.
Sir, I am trying to implement this same thing on ES4 at exit event. The code was copied from your website. I tried changing it according to my requirement and followed all the things correctly which you have shown in the video. However, Still it doesn't work for me. Please help.
Also, please let me know if it requires any database binding?
Data binding is not required for this effect. Contact me via the blog for specific help on your form.
I have created dropdown with the .addItem. Lets say in your situation, you wanted to add multiple instances of the "MODEL" dropdown (since it is based on the Make), how would that be coded?
Instantiation using Javascript is a much more complex topic than simple "case" statements. The code would vary based on where the "MODEL" dropdown was in relation to the "MAKE" dropdown, and what mechanism was being employed to make it repeatable. In other words, is the Page object repeatable? or a subform? or is it a Cell in a repeating row of a table?
If this answer creates more questions, you may want to contact me via my blog to get more specific help.
Okay I submitted a message to you, on your website.
Thanks for the video. Could you please share a example using databases with Excel to fill pdf form like if I select a company name the other fields should get populated like company address. Telephone number. service center..
It would be a great help. If you share a example
Thanks very much !
Really quick question: What, if any, are the scripting and object (Field, Value, and Binding) properties for the "cboModel" dropdown list? I did my own code and then subsequently copied your code, but neither iteration worked for me.
You will need to contact me via my blog, so I can email you the sample form.
I watch all of your tutorials and they have been very helpful, thanks! I have a question that I am hoping you can help me answer. I have a form that has a drop down list of products, I want the price, in a separate text field, of the selected product to populate upon user choice/selection in the product drop down list to populate with the correct costs in the price text field. Is this possible?
Yes...you only need to add a small script to the "exit" event of the dropdown that specifies the field's rawValue equal to whatever value you wish.
True Tech Troubleshooting Can you have two different exit events on the same field? I currently have an exit event that effects another drop down field "Color" options based upon their product selection. However, I need the product selection field to also change the "price" field. This is what I have:
form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client)
Color.clearItems();
switch(this.rawValue){
case"1":
Color.addItem("NAVY BLUE");
Color.addItem("LIGHT BLUE");
Color.addItem("ROYAL BLUE");
Color.addItem("TURQUOISE");
Color.addItem("GRAY");
Color.addItem("DARK GRAY");
Color.addItem("TAN");
Color.addItem("YELLOW");
Color.addItem("WHITE");
Color.addItem("BURGANDY");
Color.addItem("RED");
Color.addItem("BLACK");
break;
case"2":
etc....
How do I write the script to accomplish this.....Like this?
form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client)
switch(this.rawValue){
case"1":
Price.rawValue = 15;
break;
case"2":
Price.rawValue = 20;
break;
etc......
}
MrMoxie101 You almost have it...just add the Price.rawValue = 15; line beneath the Color.addItem("BLACK"); line. I.E. the exit event can have an endless amount of code beneath it affecting any objects you choose. So here is how I would re-write your code:
form1.FormBody.OrderArea.Table1.Row1.Product::exit - (JavaScript, client)
Color.clearItems();
switch(this.rawValue){
case"1":
Color.addItem("NAVY BLUE");
Color.addItem("LIGHT BLUE");
Color.addItem("ROYAL BLUE");
Color.addItem("TURQUOISE");
Color.addItem("GRAY");
Color.addItem("DARK GRAY");
Color.addItem("TAN");
Color.addItem("YELLOW");
Color.addItem("WHITE");
Color.addItem("BURGANDY");
Color.addItem("RED");
Color.addItem("BLACK");
Price.rawValue = 15;
break;
case"2":
etc....
Have fun!
True Tech Troubleshooting - Never mind.....I figured it out :)
@@Truetechtroubleshooting if you have the text field in another row of your table, do you have to name the entire path to your text field, i.e. form1.FormBody.OrderArea.Table1.Row2.Price.rawValue = 15; ?
Thank you! I wanted to let you know that these videos are so very helpful!
I'm creating this same concept with counties and townships. One question: If a user selects the "Make" and "Model" but then decides to go back and change the "Make," the original "Model" value is still showing. I would like to know how to clear the "Model" value to invite the user to re-select from the "Model" drop-down if they go back and change the "Make" value. If the user goes through these steps they could possibly submit a bad combination of "Make" and "Model". At least that's how mine is working. Can you show us how to fix that? I think someone asked a similar question but I haven't seen a solution yet. If I missed it my apologies.
I actually figured it out. I used the JavaScript in the video then I created an action script saying that whenever the first drop down is changed then set the second drop down to null. Works like a charm.
This was great and easy to follow. How can I use 3 cascading drop downs?
Menu 1 drives the value in Menu 2;
Menu 2 drive the value options in Menu 3.
Is it possible?
I was make everything like in tutorial and it wasn't working. I copied code and find the problem. When you copy the code you have to re-write captions "". :)
Thanks!
this is exactly what I need to do in a form I'm creating and I have copied your code into a template to first attempt to see it work on my own screen. I cannot get the second dropdown box to populate based on the first one. I'm wondering if you wouldn't mind posting a link to the actual template that you used to make the video. This way I could study it deeper and see if I'm missing something. Thanks.
I am trying to use the code and I face the same problem. could you please advise if you have list created in the object property for Model? In my case I hear empty button sound and doesnt display anything -- help please!
I am trying to use the code and I face the same problem. could you please advise if you have list created in the object property for Model? In my case I hear empty button sound and doesn't display anything -- help please!
Hola, muchas gracias por tus tutoriales pero podrías hacerlo paso por paso.
this was so long ago... but that code didn't need to be hundreds of lines long.
Use some arrays, and a for loop (foreach, while loop whatever) and have a method call passing your array...
thats for anyone watching this wondering how to add JS to a PDF... im curious for work purposes, never added JS to a PDF before :)
Adobe Acrobat Pro does have the capability to have javascript added to form fields layered on top of flat pdf's. This video shows dynamic pdf's created in Adobe LiveCycle.