Skip to content
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

disabledFieldButtons not working when reloading a saved form? #657

Closed
Adam-78 opened this issue Oct 26, 2017 · 1 comment
Closed

disabledFieldButtons not working when reloading a saved form? #657

Adam-78 opened this issue Oct 26, 2017 · 1 comment

Comments

@Adam-78
Copy link

Adam-78 commented Oct 26, 2017

I have a form with some default fields which users should not be able to remove. I can manage this by using the disabledFieldButton property as follows when creating a form:

    var defaultFields = [
        {
            "type": "text",
            "required": true,
            "label": "Subject",
            "className": "form-control",
            "name": "Subject",
            "subtype": "text",
            "maxlength": "255",
            "disabledFieldButtons": ['remove', 'copy']
       },

When you save the form the disabledFieldButtons property does not get saved. So when you reload the form to edit by passing in the json string to formdata, the field buttons reappear meaning users can now delete them.

Is there any way we can ensure that mandator field are not removed whether creating or when editing?

@foaadnami
Copy link

Looks the same as #600 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants