Hi,
I have a page like this:
when i click button, it navigate to this page:
so, i'm trying to validate if the number wrote in the first page exist before enter to the second page and show message (please enter correct number),
Sorry but i don't speak very well english, :)
Thanks.
You can follow the document that I sent.
You only need to do a query to verify if the number is in Database. If not you show the error message, if yes you go to the second screen.
Hi Alexis,
so:
Test and give me your feedback.
Best Regards,
Pedro Vila Nova
Instead of navigate to the page, call a server action and follow this:
https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Forms/Validate_Form_Inputs
You only enter in the new page if the number is valid.
or see this one: https://www.outsystems.com/learn/lesson/857/input-validation/
kind regards,
Emanuel
EFreitas wrote:
Hi EFreitas, by what Alexis said, the objective is enter at other page... even if not exists, like a new ID I guess
Pedro Vila Nova wrote:
i want enter to the second page only if the number exits in database, because in the second page i going to update the data of the number enter in the first page.
bless.
Alexis, ok, didn't understand the objective...
So like @EFreitas said, instead of use and button with method navigate, use ScreenAction, with the validation i was telling before, if exists then you use :
otherwise set the inputMessage or FeedbackMessage.
But don´t forget to add the input parameter at the navigation page.
Thanks,
i did it.
Alexis Rodriguez
Between the 1st feedback message and your if use an input_focusFirst invalid.
Best regards