Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I would like to prevent the user from submitting the value when the value is not correct.
I tried to return false and I also tried e.preventDefault() but its not working.
Help any one?
Thanks,
Gal.
Hi Gal,
Where are you showing your form? In the admin part ?
Can you share code ?
Thanks, Alex
Hi Alex,
yes in the admin
$scope.$on("formSubmitting", function (e, args) { if ($scope.counter > 3) { e.preventDefault(); } $scope.currentPage.tabs[1].properties[9].value = $scope.model.specials;
});
Actually, was not solved pressed by mistake. If any one can lead me to the right track, would be appreciated.
I had found a solution to hook in to the unpublish button.
You can see it in this post.
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/64709-Intercepting-unpublish-button-click-
Dave
Hi Dave and thank you!!! Exactly what I needed.
BR,
Gal
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to prevent formSubmitting in custom property editor
Hi,
I would like to prevent the user from submitting the value when the value is not correct.
I tried to return false and I also tried e.preventDefault() but its not working.
Help any one?
Thanks,
Gal.
Hi Gal,
Where are you showing your form? In the admin part ?
Can you share code ?
Thanks, Alex
Hi Alex,
yes in the admin
});
Actually, was not solved pressed by mistake. If any one can lead me to the right track, would be appreciated.
Gal.
Hi Gal,
I had found a solution to hook in to the unpublish button.
You can see it in this post.
https://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/64709-Intercepting-unpublish-button-click-
Dave
Hi Dave and thank you!!! Exactly what I needed.
BR,
Gal
is working on a reply...