File tree Expand file tree Collapse file tree
user_guide_src/source/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -583,6 +583,9 @@ replaced by the **value** of the matched incoming field. An example should clari
583583
584584.. literalinclude :: model/038.php
585585
586+ .. note :: Since v4.3.5, you must set the validation rules for the placeholder
587+ field (``id ``).
588+
586589In this set of rules, it states that the email address should be unique in the database, except for the row
587590that has an id matching the placeholder's value. Assuming that the form POST data had the following:
588591
@@ -594,6 +597,9 @@ then the ``{id}`` placeholder would be replaced with the number **4**, giving th
594597
595598So it will ignore the row in the database that has ``id=4 `` when it verifies the email is unique.
596599
600+ .. note :: Since v4.3.5, if the placeholder (``id``) value does not pass the
601+ validation, the placeholder would not be replaced.
602+
597603This can also be used to create more dynamic rules at runtime, as long as you take care that any dynamic
598604keys passed in don't conflict with your form data.
599605
You can’t perform that action at this time.
0 commit comments