Hello,
In Orbeon form, I want to check some conditions in Orbeon form builder. which are given below. 1. I want to match the drop-down menu values. 2. Is Attachment(component File attachment) value null or not? As per above condition, I want to display the custom error message. Can you please give me the example of above description. Thanks, Ashish -- Sent from: http://discuss.orbeon.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 post to this group, send email to [hidden email]. |
Administrator
|
Hi Ashish,
Assuming your file attachment field is named `my-file` and the dropdown is named `my-dropdown` and the value you want to test on is `my-value`, then the XPath for the validation formula would look like: $my-file = '' and $my-dropdown = 'my-value' You'll let me know if this helps, Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks Alex. I will check. On Wed, May 23, 2018 at 12:41 AM, Alessandro Vernet <[hidden email]> wrote: Hi Ashish, Ashish Vala Lead Programmer Analyst ArguSoft India Ltd Tel: +91 79 23287027 Xtn: 108 Cell: +91 9510519036 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 post to this group, send email to [hidden email]. |
In reply to this post by Alessandro Vernet
Thanks, Alex. It is working now.
But, Can you tell me how can I show the custom error messages? I have 2 file attachment and 1 drop-down field. Now, When the drop-down value is "Research" and one of file attachment attached. then the error message should be displayed. If above condition not satisfied then the error message should disappear. How can I achieve above-described requirements? I have attached the form fields screenshot. and also attached the control settings of the dropdown component. whose control name is control-21. How can I write the multiple conditions in "Validations and Alerts" tab of control setting? Please find attachments. form_component.png <http://discuss.orbeon.com/file/t375639/form_component.png> dropdown_control.png <http://discuss.orbeon.com/file/t375639/dropdown_control.png> Thanks, Ashish -- Sent from: http://discuss.orbeon.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 post to this group, send email to [hidden email]. |
Administrator
|
Hi Ashish,
You can type your own custom error message for a constraint, instead of the default "Missing or incorrect value", by unticking the box below that message, as shown in the 2nd screenshot you posted (see below). You'll let me know if this works for you. http://discuss.orbeon.com/file/t375639/dropdown_control.png Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |