I am trying to check if the field is not empty then navigate to next page.
Please let me know how can we achieve using Sitecore Form condition. Kindly refer to the image attached for reference.
You can make the field mandatory and hide the submit button using the condition. That way you can ensure the user will not be able to go to the next page with empty message field value.
Follow the below steps to achieve your requirements.
Create a new Sitecore Form
Drag and Drop Page
element from the Form element section.
Again drag and drop Page
element and name it "ConfirmationPage"
Select the first page and prepare a form structure like below
Section
and under the section add your field called Message
as a Multiline line text field.Message
.Add another Section
and then add Submit button
to the section.
Click the Submit button
and change the Lable and Field name as per your need. Now click the Edit conditions
button and add the condition
Alos, you can control the Submit
button to be displayed on Section
level like if the Message
field is Empty then Submit button is hidden and once the user interacts with it it will come up.
Hope it helps!