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
- Place
Section
and under the section add your field calledMessage
as a Multiline line text field. - Change the label to
Message
. - If you want the Message filed as Mandatory you can mark it as mandatory.
- Place
Add another
Section
and then addSubmit button
to the section.Click the
Submit button
and change the Lable and Field name as per your need. Now click theEdit 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!