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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

czajw
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/baed5a4a-ee83-4b10-9654-3d720b628314n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

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

Jarosław Kowalewski
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

wt., 16 lut 2021 o 15:22 Władysław Czaja <[hidden email]> napisał(a):
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/baed5a4a-ee83-4b10-9654-3d720b628314n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/CAHFpwcU1Gt0zc5KMNuK8pkrCf0gYFQSvnh3Zsc4EO710BN-u6w%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

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

czajw
@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.

wtorek, 16 lutego 2021 o 15:52:28 UTC+1 Jarek napisał(a):
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

wt., 16 lut 2021 o 15:22 Władysław Czaja <[hidden email]> napisał(a):
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

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/baed5a4a-ee83-4b10-9654-3d720b628314n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/3c3adb73-4728-4d79-a28a-1f1e447da874n%40googlegroups.com.