Hi,
I have a form with an attachments field, which is only a required field when another option is false.
I am currently hiding the 'Submit' button until all required fields are complete - except the attachments fields, as that is only required some of the time.
Many of my users are submitting a form which requires an attachment, but they don't attach anything, so the 'Submit' button is visable and can be selected, which takes them to the success screen even though their submission has actually not gone through.
I would like the 'Submit' button to only navigate to the success screen if it is successful, so far I have this (which doesn't work):
OnSelect = If(And(!IsEmpty(attachmentDataCard.Attachment), (DataCardValue1.Value=false)),disable,SubmitForm(Form1);Navigate(SuccessScreen,Fade)
Please can anyone help?
Submit only if xx=false and attachment is attached
Many thanks