You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -362,8 +362,9 @@ set (the same effect as setting a `value` attribute on each field within the for
362
362
*`validation`: Optional. See the "Fine Tuning Validation" section.
363
363
*`template`: Optional. See the "Templates" section.
364
364
*`type`: Optional. The form type. Default if not provided is "normal". See [Form Types](#form-types).
365
-
*`meteormethod`: Optional. When `type` is "method", indicate the name of the
365
+
*`meteormethod`: Optional. When `type` is "method" or "method-update", indicate the name of the
366
366
Meteor method in this attribute.
367
+
*`ddp`: Optional. When `type` is "method" or "method-update", provide an alternative DDP Connection that should be used to call the Meteor method in this attribute.
367
368
*`resetOnSuccess`: Optional. The form is automatically reset
368
369
for you after a successful submission action. You can skip this by setting this
369
370
attribute to `false`.
@@ -647,6 +648,8 @@ Use the `scope` attribute on your form to define the array field into which the
647
648
648
649
Will call the server method with the name you specify in the `meteormethod` attribute. Passes a single argument, `doc`, which is the document resulting from the form submission.
649
650
651
+
You may optionally specify a DDP Connection in the `ddp` attribute. If you do, the method will be called using the DDP connection provided.
652
+
650
653
The method is not called until `doc` is valid on the client.
651
654
652
655
**You must call `check()` in the method or perform your own validation since a user could bypass the client side validation.**
@@ -658,6 +661,8 @@ Will call the server method with the name you specify in the `meteormethod` attr
658
661
*`modifier`: the modifier object generated from the form values
659
662
*`documentId`: the `_id` of the document being updated
660
663
664
+
You may optionally specify a DDP Connection in the `ddp` attribute. If you do, the method will be called using the DDP connection provided.
665
+
661
666
The method is not called until `modifier` is valid on the client.
662
667
663
668
**You must call `check()` in the method or perform your own validation since a user could bypass the client side validation.**
0 commit comments