• Isn’t it possible to simply repeat/clone the fields without cloning the information inside the input boxes? This doesn’t make sense to me..! I need help with this asap.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saravana Kumar K

    (@mycholan)

    Noted, I will update it on my next release, for you I will try to put an updated snippet here shortly.

    If you haven’t found a solution yet, this is what I did.

    I edited wcff-client.js and right below line 262 I added this line:

    cloned.find(“input[type=radio],input[type=text],input[type=checkbox], textarea”).removeAttr(“checked”).val(”);

    Works quite well.

    OK, I had to make adjustments in order for it to work with radio buttons and checkboxes.

    In wcff-client.js after line 262 there needs to be two separate lines. One for text and textarea and the other for radio buttons and checkboxes:

    cloned.find(“input[type=text], textarea”).val(”);
    cloned.find(“input[type=radio],input[type=checkbox]”).removeAttr(“checked”);

    Now it works!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clone/repeat fields without inserted information’ is closed to new replies.