Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Add & remove row button (also have added row hidden prior to add)

Avatar

Former Community Member

I’m trying to create a quote form with some fixed fields and also have some user edit fields allowing them to add something not in the fixed fields. I have created an Add and Remove button and the work great however I would prefer the row is hidden until the add button is selected. Additionally I can not get the from to auto calculate the added rows.

I’m new and I would appreciate anyone’s support

I have include a link below to show you my form

Again thank you

https://docs.google.com/fileview?id=0B10U6MT6e83fYmJmOWRkMjktMzEyZC00Yjg3LThlZWEtNmQ2YTk0YzQ4Y2Y5&hl...

1 Accepted Solution

Avatar

Correct answer by
Level 10

Here is the updated file.

https://acrobat.com/#d=1FoAqhMxrzGVnW6jpfkOmg

In the initialize event of the Add Row I am setting the presence property of Row11 to hidden. When the user clicks on the AddRow I am checking if the presence is hidden then making it Visible. Similarly while removing the rows, I am checking if only one Row11 exists, then I am hiding the row. (You can change if your requirement is different) Check the Click event code for both the buttons.

To get the Amount value instead of using the Row11.Amount you need to use "Sum(Row11[*].Amount)"

Let me know if this helps..

Thanks

Srini

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

Here is the updated file.

https://acrobat.com/#d=1FoAqhMxrzGVnW6jpfkOmg

In the initialize event of the Add Row I am setting the presence property of Row11 to hidden. When the user clicks on the AddRow I am checking if the presence is hidden then making it Visible. Similarly while removing the rows, I am checking if only one Row11 exists, then I am hiding the row. (You can change if your requirement is different) Check the Click event code for both the buttons.

To get the Amount value instead of using the Row11.Amount you need to use "Sum(Row11[*].Amount)"

Let me know if this helps..

Thanks

Srini

Avatar

Former Community Member

Srini,

Thank you so much for your help, I new and learning and your support is very much appreciated.

I have a couple of more questions if you can help.

The attached is the document with the form you updated and I have added some other items, one of is a signature which upon completing should lock all the quote fields preventing anyone from changing. Some fields I leave unprotected so the customer can complete and send be to proceed with the work. For some reason in it not locking all of the added rows, some are locked and others are not.

Also do you have any suggestions for learning the product better, online tutorials? Unfortunately my budget to pay for the tutorials is little to know so free would be the best option.

Again Thank you for your help

Kind Regards,

John Valenzia

Avatar

Level 10

I did not see the attachment here..

Check these links..

http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm
http://partners.adobe.com/public/developer/tips/index.html
http://www.adobe.com/devnet/livecycle/?view=documentation

Forums has lot of solutions to practical issues. You can learn a lot from the people's expertise in this forum.

Thanks

Srini

Avatar

Former Community Member

The following is a link

http://docs.google.com/fileview?id=0B_p4cwmgRH_5NzIzNTNjMDUtMTMzMy00NTI0LTk3OGMtMDM3ZDAxZmU4YzM4&hl=...

Kind Regards,

John Valenzia

Assistant Contract Coordinator

Timsons Inc.

1455 Payne Road

Schaumburg, IL 60193

Phone (847)884-8611

Fax (847)884-8676

Avatar

Level 10

Since you are using a Signature field, you need to write the code in the preSign event of the Signature field.

You can make a field readonly by changing the access property. For example: TextField1.access = "readOnly";

If you want to block all the fields in all the rows in Table1, you could write like Page1.Table1.access = "readOnly";

(OR) if you want to block only specified fields in Table1, you could write like

   Table1.Row1.TextField1.access ="readOnly";

Let me know if this helps.

FYI--

There is a Free Tech Talk on Building Dynamic Forms - Tuesday, April 27 at 10 Pacific

Title: Building Dynamic Forms

Date: Tuesday, Apr 27, 2010

Time: 10:00 am America/Los Angeles


Register: http://www.acrobatusers.com/events/2240/tech-talk-building-dynamic-forms

Thanks

Srini