As far as I understand, it should be enough to make the file required if the text field is empty, right? Then try this:
plugin.Tx_Formhandler.settings {
if {
1 {
conditions.OR1.AND1 = linkedin=
isTrue {
validators.1.config.fieldConf.file.errorCheck.1 = fileRequired
}
}
}
}
BTW: using the predef
stuff is much cleaner and safer if you have multiple forms on your site.