-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I disable field actions on specific fields? #1468
Comments
Await the formBuilder().promise and then remove (or disable) the delete and edit buttons for those fields |
Since I'm facing the same problem - and I'm not a JS expert - I thought about the following possible solutions:
(I'm still expirimenting with this, since the docs not 100% states how to include options, fileds/templates upon initialization, but this seems to work, but I cannot display a text input properly:
IMHO - currently - the best is the last, but would be great to have an onRemove or onDelete event as well. Note: the last 2 solutions builds upon having a specific class added to the desired elements |
Description: I want to allow a form to be built that includes REQUIRED default fields. I dont want the user to be able to remove or alter these fields, but should be able to add and alter any additional fields they choose.
I have tried using disabledFieldButtons, which removes them for an entire field type, instead of just a specific field. I also tried using a typeUserEvents, but that didnt work either (my attempts and example below). How do I accomplish this?
Environment Details:
The text was updated successfully, but these errors were encountered: