Could you show some sample code? Show me what it is you are trying to
remove and what it should look like when it is done.
<div class="repeat inlineSection" id="tfa_5557048292275">
<div class="oneField" id="tfa_AppointmentDate-D">
<label for="tfa_AppointmentDate" class="inlineLabel">Appointment
Date <span class="reqMark">*</span></label>
<input type="text" class="validate-date required" size="15" value=""
name="tfa_AppointmentDate" id="tfa_AppointmentDate"/> <span
id="tfa_AppointmentDate-E" class="errMsg"> </span>
</div>
<div class="oneField" id="tfa_AppointmentTime-D">
<label for="tfa_AppointmentTime" class="inlineLabel">Appointment
Time <span class="reqMark">*</span></label>
<input type="text" class="required" size="10" value=""
name="tfa_AppointmentTime" id="tfa_AppointmentTime"/> <span
id="tfa_AppointmentTime-E" class="errMsg"> </span>
</div>
<span class="duplicateSpan">
<a href="#" class="duplicateLink" id="tfa_5557048292275-wfDL">Add
Another Appointment</a>
</span>
</div>
Do you see how the outer DIV tag has the repeat class? This will add the
[+Add] button for you automatically.
The end SPAN tag with the class duplicateSpan is where the remove tag
comes from. You need to put a link inside that tag with the
class="duplicateLink" and the id has to be exactly the same as the id in
the opening DIV tag with the extra little "-wfDL" on it. These will
handle your add remove stuff.
I'm not one of the creators of this tool, but I think it is awesome. The
way I learned it was to go to http://www.formassembly.com and make the
form that I wanted. Then I looked at the code that it generated and
copied it.
Here's my take on your form. I think it should work, but I use wforms
with another product called FormFu so, my formatting might be off.
--{P.S. I just realized that you might be asking how to put a remove
link in the first row. You just add the class="removeable" to the tag.
I've stuck it in below. }--
<div class="repeat removeable" id="tfa_person_block">
<div id="tfa_Name-D">
<label for="tfa_Name">Name</label>
<input type="text" value="" name="tfa_Name" id="tfa_Name"/>
<span id="tfa_Name-E" class="errMsg"> </span>
</div>
<div id="tfa_Age-D">
<label for="tfa_Age">Age</label>
<input type="text" value="" name="tfa_Age" id="tfa_Age"/>
<span id="tfa_Age-E" class="errMsg"> </span>
</div>
<span class="duplicateSpan">
<a href="#" class="duplicateLink" id="tfa_person_block-wfDL">Add
Another Person</a>
</span>
</div>
Did that help?
If you don't put in the duplicateLink span, one will be created for you,
but it will be outside of the div block.
I have tested a few things and I don't think you can put a remove
element in that first tag. Unless the WForms guys come on and tell you
the proper way to do it, because I can't. You can't remove that first
element because all of the child elements are clones of it.
The function that seems to control it is getOrCreateRemoveLink which
expects the DOM element you are trying to insert. It seems to check the
wfr_master_sec which is the repeat element of which this element is a clone.
Sorry I couldn't help.
element in that first tag. Unless the WForms guys come on and tell you
have tested a few things and I don't think you can put a remove
the proper way to do it, because I can't. You can't remove that first
element because all of the child elements are clones of it.
The function that seems to control it is getOrCreateRemoveLink which
expects the DOM element you are trying to insert. It seems to check the
wfr_master_sec which is the repeat element of which this element is a clone.
Sorry I couldn't help.