How to make a warning that the user has not attached an attachment?

20 views
Skip to first unread message

Władysław Czaja

unread,
Feb 16, 2021, 9:22:36 AM2/16/21
to Orbeon Forms
How to make a warning that the user has not attached an attachment?

I try to do it like this:

noattachement.PNG I 


Is there any better solution?

The other problem is that if I add an attachment, the warning won't go away

Jarosław Kowalewski

unread,
Feb 16, 2021, 9:52:28 AM2/16/21
to orb...@googlegroups.com
You have to change the rule. In the formula, you have to write a condition that is positive for your case. 
You want to have ./@size > 0. In the message field, you write the message will be displayed when a condition is not meet.
//Jarek

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orbeon+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/baed5a4a-ee83-4b10-9654-3d720b628314n%40googlegroups.com.

Władysław Czaja

unread,
Feb 25, 2021, 5:55:59 AM2/25/21
to Orbeon Forms
@Jarek,  ./@size > 0   was causing  Cannot convert string "" to a double   

I corrected: number(./@size) > 0 and now I have not errors.

Thanks for your help.

Reply all
Reply to author
Forward
0 new messages