![]() |
1. I have 22 Sections in a form. Section 3, 4 are repeater field. Also section 8 and 9 are repeater field.
So, what I need is basically copying a certain field text from section 3 to section 8 and from section 4 to section 9.
So, if a user add additional rows in section 3,4 the new code should automatically populate equal number of rows in section 8 and 9.
See Attached image for details.
On section 17 I need to copy names and add equal number of rows from section 3, 4.
Section 21 I need to copy names, address etc from repeater section 4 and also create empty serial with numbers 1 2 3 etc for signature.
Form link: http://wpunmarked.com/new-deed/ ![]() Solution - 1First, when working on javascript, always check for errors on the console. Any error might give you problem with other js code. As much as possible, remove or fix all error first. I can't give you code because your page has javascript error, I can't test some code. But what you need to do is to get the click event on the add button and with that you can trigger click event on the other corresponding add button Example: You should catch the click event on section 3. With this, you then trigger the click event on "add" button on section 8. Solution - 2It's easy to create the code but really you have a JS code issue and it must be fixed that will help me to work. 2- But I want to know to confirm, Is this what you want? 1-If user clicks to duplicate the section 3 or 4 need to duplicate the text fields only to 8 or 9. 2-Need to copy names from section 3 to section 17 and also, duplicate the text fields from section 3 3-copy names, address and all fields from repeater section 4 to section 21 what is this mean? >> create empty serial with numbers 1 2 3 etc for signature? Regards Solution - 3Your link doesn't work |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 13 |