我使用的是Angular 7中的FormIO,我不想在我的表单中显示包含"Societe est obligatoire“的警告-危险(第一个),如果它无效。

这是我在form-io.component.ts中声明的表单
form= {
components: [
{
type: "textfield",
input: true,
tableView: true,
inputType: "text",
inputMask: "",
label: "Societe",
key: "societe",
placeholder: "societe",
multiple: false,
defaultValue: "",
protected: false,
unique: false,
persistent: true,
validate: {
required: true,
minLength: 1,
pattern: "",
custom: "",
customPrivate: false
},
conditional: {
show: "",
when: null,
eq: ""
}
},
{
input:true,
label:"Validate",
tableView:false,
key:"ValidateFournisseur",
size:"md",
block:false,
action:"submit",
disableOnInvalid:true,
theme:"primary",
type:"button",
hidden:false
} 这是我的表单-io.Component.html
<formio [form]="form"></formio>有什么帮助吗?
发布于 2019-06-06 12:06:50
对于那些仍在寻找答案的人
在您的html中
<formio [form]="form" [options]="options" ></formio>并在yout ts文件中
options: Object = {
submitMessage: "",
disableAlerts: true,
noAlerts: true
}希望能有所帮助
https://stackoverflow.com/questions/55596073
复制相似问题