Я борюсь с Formio, скрывающим компонент кнопки моей формы.Мне нужно скрыть кнопку отправки в моей форме.Пожалуйста помоги.Заранее спасибо
Единственное, что я думаю, должно работать, вы можете увидеть в моем коде.Я также попытался поместить его в мой renderOptions
как массив.Пока ничего не получалось.
HTML:
<div>
<formio
[form]="structuredForm"
[submission]='{"data":formSubmission }'
[renderOptions]="formioRenderOptions"
hide-components="['submit', 'submit5']">
</formio>
</div>
My formioRenderOption
Нужно ли здесь устанавливать скрытые кнопки?
this.formioRenderOptions = {
noAlerts: true,
language: this.translateService.currentLang.replace('_', '-')
i18n: '',
readOnly: true,
};
Мой файл Formio JSON с 2кнопки:
{
"label": "save",
"action": "event",
"showValidations": false,
"event": "saveDraftEvent",
"theme": "primary",
"shortcut": "",
"disableOnInvalid": true,
"mask": false,
"tableView": true,
"alwaysEnabled": false,
"type": "button",
"key": "submit4",
"input": true,
"conditional": {
"show": "",
"when": "",
"json": ""
},
"customConditional": "",
"properties": {},
"tags": [],
"logic": [],
"defaultValue": true
},
{
"label": "next",
"action": "event",
"showValidations": false,
"event": "submitApplicationEvent",
"theme": "primary",
"shortcut": "",
"disableOnInvalid": true,
"mask": false,
"tableView": true,
"alwaysEnabled": false,
"type": "button",
"key": "submit5",
"input": true,
"conditional": {
"show": "",
"when": "",
"json": ""
},
В данный момент моя форма доступна только для чтения, однако кнопки все еще видны и не скрыты.