'ADD AND DELETE ROWS DYNAMICALLY' script doesn't work properly.

  • monsterazor
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 33
  • Thank you received: 0

monsterazor created the topic: 'ADD AND DELETE ROWS DYNAMICALLY' script doesn't work properly.

Hi;

I added 'ADD AND DELETE ROWS DYNAMICALLY' script. You can check it my website.
Normally it should shown only 2 rows at start but it shows all rows. And if I want to delete row firstly I must click 'Add Row' button. After that I can delete row by clicking 'Del Row'.
Also I want to the form starts with only one row. If users want, they can add or delete row.
How can I fix it ?

arormanurunleri.com/tr/ozel-olcu-ahsap-kesim
#239745
  • Posts: 3128
  • Karma: 105
  • Thank you received: 411

mihaela replied the topic: 'ADD AND DELETE ROWS DYNAMICALLY' script doesn't work properly.

Hello,

Please go to the Advanced properties of the sections that should be hidden when the form is loaded, starting from the third one, and check the "Turn off" checkbox.

Let me know whether afterward your form starts working properly.

Note that this will show 2 rows at the start, but if you get this working I will get you then instructions on how to adjust the form and the script to show only one row at start.

Regards,

Mihaela
#239753
  • monsterazor
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 33
  • Thank you received: 0

monsterazor replied the topic: 'ADD AND DELETE ROWS DYNAMICALLY' script doesn't work properly.

Hi Mihaela;

I used 'Turn off' function and it works properly. Also if you can help about start with only one row, I will be very glad.

Thanks...
#239764
  • Posts: 3128
  • Karma: 105
  • Thank you received: 411

mihaela replied the topic: 'ADD AND DELETE ROWS DYNAMICALLY' script doesn't work properly.

Hello,

Great! I'm glad I've helped and that this is now working properly.

Here are instructions on how to start with one row only.

Go to the AddDeleteRows form and in the "Section 2" Properties change Section name from s2 to S2. Also, in The Advanced options of Section 2 turn off the section.
Please, check you saved all the changes.

Then go to the BreezingForms > Manage Scripts and in the "WrapperScriptAddDelete" script replace this line of code:
var i=2;
with this one:
var i=1;
Also, replace this line of code:
for (i;i>2;i--)
with this one:
for (i;i>1;i--)

Save the change and that should make it work as you wanted.

Regards,

Mihaela
#239772
The following user(s) said Thank You: monsterazor
Moderators: ForumSupporttomeperica
Time to create page: 0.051 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here