PluginProbe ʕ •ᴥ•ʔ
Conditional Fields for Contact Form 7 / 2.7.9
Conditional Fields for Contact Form 7 v2.7.9
2.7.10 2.7.9 2.7.8 2.7.7 2.7.6 2.7.5 2.7.4 2.7.3 2.7.2 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.4 1.4.1 1.4.2 1.4.3 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.1 1.6.2 1.6.3 1.6.5 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.8 1.7.9 1.8 1.8.1 1.8.2 1.8.3 1.8.5 1.8.6 1.8.7 1.9 1.9.1 1.9.10 1.9.11 1.9.12 1.9.13 1.9.14 1.9.15 1.9.16 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2 2.2.1 2.2.10 2.2.11 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.10 2.3.11 2.3.12 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.7 2.7.1 trunk 0.1 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.1.6 0.1.7 0.2 0.2.1 0.2.2 0.2.3
cf7-conditional-fields / jsdoc-out / wpcf7cf.html
cf7-conditional-fields / jsdoc-out Last commit date
fonts 5 years ago scripts 5 years ago styles 5 years ago global.html 3 days ago index.html 3 days ago module-wpcf7cf.html 5 years ago scripts.js.html 3 days ago scripts_es6.js.html 4 years ago wpcf7cf.html 3 days ago wpcf7cfApi.html 5 years ago
wpcf7cf.html
2103 lines
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>JSDoc: Namespace: wpcf7cf</title>
6
7 <script src="scripts/prettify/prettify.js"> </script>
8 <script src="scripts/prettify/lang-css.js"> </script>
9 <!--[if lt IE 9]>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11 <![endif]-->
12 <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13 <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14 </head>
15
16 <body>
17
18 <div id="main">
19
20 <h1 class="page-title">Namespace: wpcf7cf</h1>
21
22
23
24
25
26
27 <section>
28
29 <header>
30
31 <h2>wpcf7cf</h2>
32
33
34 </header>
35
36 <article>
37 <div class="container-overview">
38
39
40
41
42
43
44 <dl class="details">
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71 <dt class="tag-source">Source:</dt>
72 <dd class="tag-source"><ul class="dummy"><li>
73 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1190">line 1190</a>
74 </li></ul></dd>
75
76
77
78
79
80
81
82 </dl>
83
84
85
86
87 </div>
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104 <h3 class="subsection-title">Methods</h3>
105
106
107
108
109
110
111
112 <h4 class="name" id=".calculatedfieldsCreateFieldsHelper"><span class="type-signature">(static) </span>calculatedfieldsCreateFieldsHelper<span class="signature">(form, suffix)</span><span class="type-signature"> &rarr; {Object}</span></h4>
113
114
115
116
117
118
119 <div class="description">
120 <p>Create a fields helper object for use in user-defined calculation functions.
121 Provides get(), raw(), all(), and sum() methods.
122 When suffix is provided, get() and raw() auto-resolve to the same repeater sub.</p>
123 </div>
124
125
126
127
128
129
130
131
132
133 <h5>Parameters:</h5>
134
135
136 <table class="params">
137 <thead>
138 <tr>
139
140 <th>Name</th>
141
142
143 <th>Type</th>
144
145
146
147
148
149 <th class="last">Description</th>
150 </tr>
151 </thead>
152
153 <tbody>
154
155
156 <tr>
157
158 <td class="name"><code>form</code></td>
159
160
161 <td class="type">
162
163
164 <span class="param-type"><a href="Wpcf7cfForm.html">Wpcf7cfForm</a></span>
165
166
167
168 </td>
169
170
171
172
173
174 <td class="description last"><p>The form object</p></td>
175 </tr>
176
177
178
179 <tr>
180
181 <td class="name"><code>suffix</code></td>
182
183
184 <td class="type">
185
186
187 <span class="param-type">String</span>
188
189
190
191 </td>
192
193
194
195
196
197 <td class="description last"><p>Repeater suffix (e.g. '__2' or '__1__3'), empty string if not in repeater</p></td>
198 </tr>
199
200
201 </tbody>
202 </table>
203
204
205
206
207
208
209 <dl class="details">
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236 <dt class="tag-source">Source:</dt>
237 <dd class="tag-source"><ul class="dummy"><li>
238 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1685">line 1685</a>
239 </li></ul></dd>
240
241
242
243
244
245
246
247 </dl>
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263 <h5>Returns:</h5>
264
265
266 <div class="param-desc">
267 <p>The fields helper</p>
268 </div>
269
270
271
272 <dl>
273 <dt>
274 Type
275 </dt>
276 <dd>
277
278 <span class="param-type">Object</span>
279
280
281 </dd>
282 </dl>
283
284
285
286
287
288
289
290
291
292
293
294
295
296 <h4 class="name" id=".calculatedfieldsEvaluateFormula"><span class="type-signature">(static) </span>calculatedfieldsEvaluateFormula<span class="signature">(formula, form, suffix)</span><span class="type-signature"> &rarr; {Number}</span></h4>
297
298
299
300
301
302
303 <div class="description">
304 <p>Evaluate a formula string by replacing [field-name] references with actual field values.
305 Supports: +, -, *, /, parentheses, and nested field references.
306 When suffix is provided, field references auto-resolve to the same repeater sub.</p>
307 </div>
308
309
310
311
312
313
314
315
316
317 <h5>Parameters:</h5>
318
319
320 <table class="params">
321 <thead>
322 <tr>
323
324 <th>Name</th>
325
326
327 <th>Type</th>
328
329
330
331
332
333 <th class="last">Description</th>
334 </tr>
335 </thead>
336
337 <tbody>
338
339
340 <tr>
341
342 <td class="name"><code>formula</code></td>
343
344
345 <td class="type">
346
347
348 <span class="param-type">String</span>
349
350
351
352 </td>
353
354
355
356
357
358 <td class="description last"><p>The formula string, e.g. &quot;[quantity] * [price] + 10&quot;</p></td>
359 </tr>
360
361
362
363 <tr>
364
365 <td class="name"><code>form</code></td>
366
367
368 <td class="type">
369
370
371 <span class="param-type"><a href="Wpcf7cfForm.html">Wpcf7cfForm</a></span>
372
373
374
375 </td>
376
377
378
379
380
381 <td class="description last"><p>The form object</p></td>
382 </tr>
383
384
385
386 <tr>
387
388 <td class="name"><code>suffix</code></td>
389
390
391 <td class="type">
392
393
394 <span class="param-type">String</span>
395
396
397
398 </td>
399
400
401
402
403
404 <td class="description last"><p>Repeater suffix (e.g. '__2'), empty string if not in repeater</p></td>
405 </tr>
406
407
408 </tbody>
409 </table>
410
411
412
413
414
415
416 <dl class="details">
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443 <dt class="tag-source">Source:</dt>
444 <dd class="tag-source"><ul class="dummy"><li>
445 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1792">line 1792</a>
446 </li></ul></dd>
447
448
449
450
451
452
453
454 </dl>
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470 <h5>Returns:</h5>
471
472
473 <div class="param-desc">
474 <p>The calculated result</p>
475 </div>
476
477
478
479 <dl>
480 <dt>
481 Type
482 </dt>
483 <dd>
484
485 <span class="param-type">Number</span>
486
487
488 </dd>
489 </dl>
490
491
492
493
494
495
496
497
498
499
500
501
502
503 <h4 class="name" id=".calculatedfieldsGetCalcValue"><span class="type-signature">(static) </span>calculatedfieldsGetCalcValue<span class="signature">(fieldName, form)</span><span class="type-signature"> &rarr; {Number|null}</span></h4>
504
505
506
507
508
509
510 <div class="description">
511 <p>Get the numeric calc value for a field by reading data-calc-value from DOM elements.
512 Returns the sum of data-calc-value attributes from selected options or checked inputs.
513 Returns null if no data-calc-value attributes are found (field is not a calc_select/radio/checkbox).</p>
514 </div>
515
516
517
518
519
520
521
522
523
524 <h5>Parameters:</h5>
525
526
527 <table class="params">
528 <thead>
529 <tr>
530
531 <th>Name</th>
532
533
534 <th>Type</th>
535
536
537
538
539
540 <th class="last">Description</th>
541 </tr>
542 </thead>
543
544 <tbody>
545
546
547 <tr>
548
549 <td class="name"><code>fieldName</code></td>
550
551
552 <td class="type">
553
554
555 <span class="param-type">String</span>
556
557
558
559 </td>
560
561
562
563
564
565 <td class="description last"><p>The field name (possibly with [] suffix)</p></td>
566 </tr>
567
568
569
570 <tr>
571
572 <td class="name"><code>form</code></td>
573
574
575 <td class="type">
576
577
578 <span class="param-type"><a href="Wpcf7cfForm.html">Wpcf7cfForm</a></span>
579
580
581
582 </td>
583
584
585
586
587
588 <td class="description last"><p>The form object</p></td>
589 </tr>
590
591
592 </tbody>
593 </table>
594
595
596
597
598
599
600 <dl class="details">
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627 <dt class="tag-source">Source:</dt>
628 <dd class="tag-source"><ul class="dummy"><li>
629 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1868">line 1868</a>
630 </li></ul></dd>
631
632
633
634
635
636
637
638 </dl>
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654 <h5>Returns:</h5>
655
656
657
658
659 <dl>
660 <dt>
661 Type
662 </dt>
663 <dd>
664
665 <span class="param-type">Number</span>
666 |
667
668 <span class="param-type">null</span>
669
670
671 </dd>
672 </dl>
673
674
675
676
677
678
679
680
681
682
683
684
685
686 <h4 class="name" id=".calculatedfieldsSafeMathEval"><span class="type-signature">(static) </span>calculatedfieldsSafeMathEval<span class="signature">(expr)</span><span class="type-signature"> &rarr; {Number}</span></h4>
687
688
689
690
691
692
693 <div class="description">
694 <p>Safely evaluate a mathematical expression string.
695 Only allows numbers, +, -, *, /, parentheses, and decimal points.
696 Does NOT use eval().</p>
697 </div>
698
699
700
701
702
703
704
705
706
707 <h5>Parameters:</h5>
708
709
710 <table class="params">
711 <thead>
712 <tr>
713
714 <th>Name</th>
715
716
717 <th>Type</th>
718
719
720
721
722
723 <th class="last">Description</th>
724 </tr>
725 </thead>
726
727 <tbody>
728
729
730 <tr>
731
732 <td class="name"><code>expr</code></td>
733
734
735 <td class="type">
736
737
738 <span class="param-type">String</span>
739
740
741
742 </td>
743
744
745
746
747
748 <td class="description last"><p>The mathematical expression</p></td>
749 </tr>
750
751
752 </tbody>
753 </table>
754
755
756
757
758
759
760 <dl class="details">
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787 <dt class="tag-source">Source:</dt>
788 <dd class="tag-source"><ul class="dummy"><li>
789 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1911">line 1911</a>
790 </li></ul></dd>
791
792
793
794
795
796
797
798 </dl>
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814 <h5>Returns:</h5>
815
816
817 <div class="param-desc">
818 <p>The result, or 0 on error</p>
819 </div>
820
821
822
823 <dl>
824 <dt>
825 Type
826 </dt>
827 <dd>
828
829 <span class="param-type">Number</span>
830
831
832 </dd>
833 </dl>
834
835
836
837
838
839
840
841
842
843
844
845
846
847 <h4 class="name" id=".multistepMoveToStep"><span class="type-signature">(static) </span>multistepMoveToStep<span class="signature">($form, step)</span><span class="type-signature"></span></h4>
848
849
850
851
852
853
854 <div class="description">
855 <p>Move to step number <code>step</code>, ignoring any validation.</p>
856 </div>
857
858
859
860
861
862
863
864
865
866 <h5>Parameters:</h5>
867
868
869 <table class="params">
870 <thead>
871 <tr>
872
873 <th>Name</th>
874
875
876 <th>Type</th>
877
878
879
880
881
882 <th class="last">Description</th>
883 </tr>
884 </thead>
885
886 <tbody>
887
888
889 <tr>
890
891 <td class="name"><code>$form</code></td>
892
893
894 <td class="type">
895
896
897 <span class="param-type">String</span>
898 |
899
900 <span class="param-type">JQuery</span>
901
902
903
904 </td>
905
906
907
908
909
910 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
911 </tr>
912
913
914
915 <tr>
916
917 <td class="name"><code>step</code></td>
918
919
920 <td class="type">
921
922
923 <span class="param-type">*</span>
924
925
926
927 </td>
928
929
930
931
932
933 <td class="description last"></td>
934 </tr>
935
936
937 </tbody>
938 </table>
939
940
941
942
943
944
945 <dl class="details">
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972 <dt class="tag-source">Source:</dt>
973 <dd class="tag-source"><ul class="dummy"><li>
974 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1654">line 1654</a>
975 </li></ul></dd>
976
977
978
979
980
981
982
983 </dl>
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010 <h4 class="name" id=".multistepMoveToStepWithValidation"><span class="type-signature">(static) </span>multistepMoveToStepWithValidation<span class="signature">($form, step)</span><span class="type-signature"></span></h4>
1011
1012
1013
1014
1015
1016
1017 <div class="description">
1018 <p>Validate the current step, and move to step number <code>step</code> if validation passes.</p>
1019 </div>
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029 <h5>Parameters:</h5>
1030
1031
1032 <table class="params">
1033 <thead>
1034 <tr>
1035
1036 <th>Name</th>
1037
1038
1039 <th>Type</th>
1040
1041
1042
1043
1044
1045 <th class="last">Description</th>
1046 </tr>
1047 </thead>
1048
1049 <tbody>
1050
1051
1052 <tr>
1053
1054 <td class="name"><code>$form</code></td>
1055
1056
1057 <td class="type">
1058
1059
1060 <span class="param-type">String</span>
1061 |
1062
1063 <span class="param-type">JQuery</span>
1064
1065
1066
1067 </td>
1068
1069
1070
1071
1072
1073 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1074 </tr>
1075
1076
1077
1078 <tr>
1079
1080 <td class="name"><code>step</code></td>
1081
1082
1083 <td class="type">
1084
1085
1086 <span class="param-type">Number</span>
1087
1088
1089
1090 </td>
1091
1092
1093
1094
1095
1096 <td class="description last"></td>
1097 </tr>
1098
1099
1100 </tbody>
1101 </table>
1102
1103
1104
1105
1106
1107
1108 <dl class="details">
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135 <dt class="tag-source">Source:</dt>
1136 <dd class="tag-source"><ul class="dummy"><li>
1137 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1665">line 1665</a>
1138 </li></ul></dd>
1139
1140
1141
1142
1143
1144
1145
1146 </dl>
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173 <h4 class="name" id=".repeaterAddSub"><span class="type-signature">(static) </span>repeaterAddSub<span class="signature">($form, repeaterDataId)</span><span class="type-signature"></span></h4>
1174
1175
1176
1177
1178
1179
1180 <div class="description">
1181 <p>Append a new sub-entry to the repeater with the name <code>repeaterDataId</code> inside the form <code>$form</code></p>
1182 </div>
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192 <h5>Parameters:</h5>
1193
1194
1195 <table class="params">
1196 <thead>
1197 <tr>
1198
1199 <th>Name</th>
1200
1201
1202 <th>Type</th>
1203
1204
1205
1206
1207
1208 <th class="last">Description</th>
1209 </tr>
1210 </thead>
1211
1212 <tbody>
1213
1214
1215 <tr>
1216
1217 <td class="name"><code>$form</code></td>
1218
1219
1220 <td class="type">
1221
1222
1223 <span class="param-type">String</span>
1224 |
1225
1226 <span class="param-type">JQuery</span>
1227
1228
1229
1230 </td>
1231
1232
1233
1234
1235
1236 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1237 </tr>
1238
1239
1240
1241 <tr>
1242
1243 <td class="name"><code>repeaterDataId</code></td>
1244
1245
1246 <td class="type">
1247
1248
1249 <span class="param-type">String</span>
1250
1251
1252
1253 </td>
1254
1255
1256
1257
1258
1259 <td class="description last"><p><em>data-id</em> attribute of the repeater. Normally this is simply the name of the repeater. However, in case of a nested repeater you need to append the name with the correct suffix. For example <code>my-nested-repeater__1__3</code>. Hint (check the <code>data-id</code> attribute in the HTML code to find the correct suffix)</p></td>
1260 </tr>
1261
1262
1263 </tbody>
1264 </table>
1265
1266
1267
1268
1269
1270
1271 <dl class="details">
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298 <dt class="tag-source">Source:</dt>
1299 <dd class="tag-source"><ul class="dummy"><li>
1300 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1586">line 1586</a>
1301 </li></ul></dd>
1302
1303
1304
1305
1306
1307
1308
1309 </dl>
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 <h4 class="name" id=".repeaterAddSubAtIndex"><span class="type-signature">(static) </span>repeaterAddSubAtIndex<span class="signature">($form, repeaterDataId, index)</span><span class="type-signature"></span></h4>
1337
1338
1339
1340
1341
1342
1343 <div class="description">
1344 <p>Insert a new sub-entry at the given <code>index</code> of the repeater with the name <code>repeaterDataId</code> inside the form <code>$form</code></p>
1345 </div>
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355 <h5>Parameters:</h5>
1356
1357
1358 <table class="params">
1359 <thead>
1360 <tr>
1361
1362 <th>Name</th>
1363
1364
1365 <th>Type</th>
1366
1367
1368
1369
1370
1371 <th class="last">Description</th>
1372 </tr>
1373 </thead>
1374
1375 <tbody>
1376
1377
1378 <tr>
1379
1380 <td class="name"><code>$form</code></td>
1381
1382
1383 <td class="type">
1384
1385
1386 <span class="param-type">String</span>
1387 |
1388
1389 <span class="param-type">JQuery</span>
1390
1391
1392
1393 </td>
1394
1395
1396
1397
1398
1399 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1400 </tr>
1401
1402
1403
1404 <tr>
1405
1406 <td class="name"><code>repeaterDataId</code></td>
1407
1408
1409 <td class="type">
1410
1411
1412 <span class="param-type">String</span>
1413
1414
1415
1416 </td>
1417
1418
1419
1420
1421
1422 <td class="description last"><p><em>data-id</em> attribute of the repeater.</p></td>
1423 </tr>
1424
1425
1426
1427 <tr>
1428
1429 <td class="name"><code>index</code></td>
1430
1431
1432 <td class="type">
1433
1434
1435 <span class="param-type">Number</span>
1436
1437
1438
1439 </td>
1440
1441
1442
1443
1444
1445 <td class="description last"><p>position where to insert the new sub-entry within the repeater</p></td>
1446 </tr>
1447
1448
1449 </tbody>
1450 </table>
1451
1452
1453
1454
1455
1456
1457 <dl class="details">
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484 <dt class="tag-source">Source:</dt>
1485 <dd class="tag-source"><ul class="dummy"><li>
1486 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1606">line 1606</a>
1487 </li></ul></dd>
1488
1489
1490
1491
1492
1493
1494
1495 </dl>
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522 <h4 class="name" id=".repeaterRemoveSub"><span class="type-signature">(static) </span>repeaterRemoveSub<span class="signature">($form, repeaterDataId, index)</span><span class="type-signature"></span></h4>
1523
1524
1525
1526
1527
1528
1529 <div class="description">
1530 <p>Remove the last sub-entry from the repeater with the <em>data-id</em> attribute of <code>repeaterDataId</code> inside the form <code>$form</code></p>
1531 </div>
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541 <h5>Parameters:</h5>
1542
1543
1544 <table class="params">
1545 <thead>
1546 <tr>
1547
1548 <th>Name</th>
1549
1550
1551 <th>Type</th>
1552
1553
1554
1555
1556
1557 <th class="last">Description</th>
1558 </tr>
1559 </thead>
1560
1561 <tbody>
1562
1563
1564 <tr>
1565
1566 <td class="name"><code>$form</code></td>
1567
1568
1569 <td class="type">
1570
1571
1572 <span class="param-type">String</span>
1573 |
1574
1575 <span class="param-type">JQuery</span>
1576
1577
1578
1579 </td>
1580
1581
1582
1583
1584
1585 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1586 </tr>
1587
1588
1589
1590 <tr>
1591
1592 <td class="name"><code>repeaterDataId</code></td>
1593
1594
1595 <td class="type">
1596
1597
1598 <span class="param-type">String</span>
1599
1600
1601
1602 </td>
1603
1604
1605
1606
1607
1608 <td class="description last"><p><em>data-id</em> attribute of the repeater.</p></td>
1609 </tr>
1610
1611
1612
1613 <tr>
1614
1615 <td class="name"><code>index</code></td>
1616
1617
1618 <td class="type">
1619
1620
1621 <span class="param-type">Number</span>
1622
1623
1624
1625 </td>
1626
1627
1628
1629
1630
1631 <td class="description last"><p>position where to insert the new sub-entry within the repeater</p></td>
1632 </tr>
1633
1634
1635 </tbody>
1636 </table>
1637
1638
1639
1640
1641
1642
1643 <dl class="details">
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670 <dt class="tag-source">Source:</dt>
1671 <dd class="tag-source"><ul class="dummy"><li>
1672 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1630">line 1630</a>
1673 </li></ul></dd>
1674
1675
1676
1677
1678
1679
1680
1681 </dl>
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708 <h4 class="name" id=".repeaterRemoveSubAtIndex"><span class="type-signature">(static) </span>repeaterRemoveSubAtIndex<span class="signature">($form, repeaterDataId, index)</span><span class="type-signature"></span></h4>
1709
1710
1711
1712
1713
1714
1715 <div class="description">
1716 <p>Remove the sub-entry at the given <code>index</code> of the repeater with the <em>data-id</em> attribute of <code>repeaterDataId</code> inside the form <code>$form</code></p>
1717 </div>
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727 <h5>Parameters:</h5>
1728
1729
1730 <table class="params">
1731 <thead>
1732 <tr>
1733
1734 <th>Name</th>
1735
1736
1737 <th>Type</th>
1738
1739
1740
1741
1742
1743 <th class="last">Description</th>
1744 </tr>
1745 </thead>
1746
1747 <tbody>
1748
1749
1750 <tr>
1751
1752 <td class="name"><code>$form</code></td>
1753
1754
1755 <td class="type">
1756
1757
1758 <span class="param-type">String</span>
1759 |
1760
1761 <span class="param-type">JQuery</span>
1762
1763
1764
1765 </td>
1766
1767
1768
1769
1770
1771 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1772 </tr>
1773
1774
1775
1776 <tr>
1777
1778 <td class="name"><code>repeaterDataId</code></td>
1779
1780
1781 <td class="type">
1782
1783
1784 <span class="param-type">String</span>
1785
1786
1787
1788 </td>
1789
1790
1791
1792
1793
1794 <td class="description last"><p><em>data-id</em> attribute of the repeater.</p></td>
1795 </tr>
1796
1797
1798
1799 <tr>
1800
1801 <td class="name"><code>index</code></td>
1802
1803
1804 <td class="type">
1805
1806
1807 <span class="param-type">Number</span>
1808
1809
1810
1811 </td>
1812
1813
1814
1815
1816
1817 <td class="description last"><p>position where to insert the new sub-entry within the repeater</p></td>
1818 </tr>
1819
1820
1821 </tbody>
1822 </table>
1823
1824
1825
1826
1827
1828
1829 <dl class="details">
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856 <dt class="tag-source">Source:</dt>
1857 <dd class="tag-source"><ul class="dummy"><li>
1858 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1618">line 1618</a>
1859 </li></ul></dd>
1860
1861
1862
1863
1864
1865
1866
1867 </dl>
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894 <h4 class="name" id=".repeaterSetNumberOfSubs"><span class="type-signature">(static) </span>repeaterSetNumberOfSubs<span class="signature">($form, repeaterDataId, numberOfSubs)</span><span class="type-signature"></span></h4>
1895
1896
1897
1898
1899
1900
1901 <div class="description">
1902 <p>Set the number of subs for the repeater with the <em>data-id</em> attribute of <code>repeaterDataId</code> inside the form <code>$form</code>.
1903 Subs are either appended to or removed from the end of the repeater.</p>
1904 </div>
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914 <h5>Parameters:</h5>
1915
1916
1917 <table class="params">
1918 <thead>
1919 <tr>
1920
1921 <th>Name</th>
1922
1923
1924 <th>Type</th>
1925
1926
1927
1928
1929
1930 <th class="last">Description</th>
1931 </tr>
1932 </thead>
1933
1934 <tbody>
1935
1936
1937 <tr>
1938
1939 <td class="name"><code>$form</code></td>
1940
1941
1942 <td class="type">
1943
1944
1945 <span class="param-type">String</span>
1946 |
1947
1948 <span class="param-type">JQuery</span>
1949
1950
1951
1952 </td>
1953
1954
1955
1956
1957
1958 <td class="description last"><p>JQuery object or css-selector representing the form</p></td>
1959 </tr>
1960
1961
1962
1963 <tr>
1964
1965 <td class="name"><code>repeaterDataId</code></td>
1966
1967
1968 <td class="type">
1969
1970
1971 <span class="param-type">String</span>
1972
1973
1974
1975 </td>
1976
1977
1978
1979
1980
1981 <td class="description last"><p><em>data-id</em> attribute of the repeater.</p></td>
1982 </tr>
1983
1984
1985
1986 <tr>
1987
1988 <td class="name"><code>numberOfSubs</code></td>
1989
1990
1991 <td class="type">
1992
1993
1994 <span class="param-type">Number</span>
1995
1996
1997
1998 </td>
1999
2000
2001
2002
2003
2004 <td class="description last"><p>position where to insert the new sub-entry within the repeater</p></td>
2005 </tr>
2006
2007
2008 </tbody>
2009 </table>
2010
2011
2012
2013
2014
2015
2016 <dl class="details">
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 <dt class="tag-source">Source:</dt>
2044 <dd class="tag-source"><ul class="dummy"><li>
2045 <a href="scripts.js.html">scripts.js</a>, <a href="scripts.js.html#line1643">line 1643</a>
2046 </li></ul></dd>
2047
2048
2049
2050
2051
2052
2053
2054 </dl>
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081 </article>
2082
2083 </section>
2084
2085
2086
2087
2088 </div>
2089
2090 <nav>
2091 <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="wpcf7cf.html">wpcf7cf</a></li></ul><h3>Global</h3><ul><li><a href="global.html#all">all</a></li><li><a href="global.html#get">get</a></li><li><a href="global.html#raw">raw</a></li><li><a href="global.html#suffix">suffix</a></li><li><a href="global.html#sum">sum</a></li></ul>
2092 </nav>
2093
2094 <br class="clear">
2095
2096 <footer>
2097 Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Sat Jul 04 2026 16:05:10 GMT+0200 (Central European Summer Time)
2098 </footer>
2099
2100 <script> prettyPrint(); </script>
2101 <script src="scripts/linenumber.js"> </script>
2102 </body>
2103 </html>