checkfield ApplicantNationalInsurance and ApplicantVarious not ready yet

This commit is contained in:
2025-01-24 15:47:18 +01:00
parent ba08715c9a
commit 8e9fe46b96
4 changed files with 159 additions and 156 deletions

View File

@@ -32,6 +32,7 @@ GridLayout
Layout.fillWidth: true
placeholderText: "Pflichtfeld"
placeholderTextColor: "red"
onTextChanged: checkFields()
}
Label
{
@@ -44,13 +45,16 @@ GridLayout
property string name: "bank"
id: bankname
Layout.fillWidth: true
model: [qsTr("Sparkasse"),qsTr("Volksbank")]
model: ["",qsTr("Sparkasse"),qsTr("Volksbank")]
editable: true
onCurrentTextChanged: checkFields()
onEditTextChanged: checkFields()
}
function checkBankField()
{
// return (iban.text.trim() && bankname.text.trim())
return (iban.text.trim())
return (iban.text.trim() && (bankname.currentText.trim() || bankname.editText.trim()))
}
}