Skip to content

Commit

Permalink
afform - limit prefill block to form mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo authored Feb 21, 2025
1 parent d8ae132 commit 2c58e0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/afform/core/ang/af/afForm.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@
ctrl.showSubmitButton = displaySubmitButton(args);
}
if (toLoad) {
$element.block();
if (params.fillMode === 'form') {
$element.block();
}
return crmApi4('Afform', 'prefill', params)
.then((result) => {
// In some cases (noticed on Wordpress) the response header incorrectly outputs success when there's an error.
Expand Down

0 comments on commit 2c58e0f

Please sign in to comment.