Once the user submits the portal form, we have to show the case Id with the message " FORM SUBMITTED " which the user submits Appian portal form.
Discussion posts and replies are publicly visible
This recipe should get you started.
https://docs.appian.com/suite/help/22.4/recipe-build-a-wizard-in-sail.html