37
Views
5
Comments
Solved
i need some suggestions regarding the validations of my input field in a form

so I need one of the input field as mandatory but incase the user doesnt have that info he can choose to fill another field or if he chooses he can fill both of them,but one of them must be filled.i need condition for that.


OsDoubt.png
2025-04-17 05-42-16
Ajit Kurane
Solution

As it was working the same like your requirement even I had taken integer data type for card number. Now in below oml I have taken text data type for the card number and its working fine.

Demo link:

PassDatatDetail (personal-xyog61l7.outsystemscloud.com)

You can ask if you need any help.

Thanks.


Passport_updated.oml
2022-12-09 04-50-17
Shubham Doshi

You can add the custom validations for that as shown below:

If Id number is blank, then it will check for passport number. If the passport number is also blank, then it will make input fields invalid. If either of the input has value, it will make it valid.

2025-04-17 05-42-16
Ajit Kurane

Hi,

Please find the attached oml for your reference.

Demo link:

https://personal-xyog61l7.outsystemscloud.com/Passport/PassDatatDetail?PassDatatId=0

Thanks,

Ajit Kurane.

Passport.oml
2025-04-17 05-42-16
Ajit Kurane
Solution

As it was working the same like your requirement even I had taken integer data type for card number. Now in below oml I have taken text data type for the card number and its working fine.

Demo link:

PassDatatDetail (personal-xyog61l7.outsystemscloud.com)

You can ask if you need any help.

Thanks.


Passport_updated.oml
2023-03-16 16-29-51
Paulo Rosário

Hello Rituparna ,

Shubham´s answer will work for you, but if you want to learn more about form validation you can take a look at this documentation : 

Validate the fields of a form

Hope it helps!

Paulo Rosário

UserImage.jpg
Rituparna Nayak

Hi

 shubham and Ajit

Thank you so much for your help, I was able to do it.

 Regards

Ritu

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.