Jump to content

PCFs - conditional Submit button


Jeremy

Recommended Posts

We have a PCF where if you choose a specific answer to a question we ask them to upload attachments, but at the bottom of the PCF, when completing the form the Submit button says Next regardless if you have chosen the answer. The system sees that there is potentially another step/page so shows the button as Next rather than Submit, can this be added as a development request?

image.png.33972d8c39789a9070ce292405518c0c.png

Link to comment
Share on other sites

hi @Jeremy,

I did same flow as yours but getting results as expected. So let see step by step what is happen here:

1) in custom form you set variable to decide later to add or not a file, here next node is BRANCH which cause that we have no idea which way it will go so NEXT (1) button is displayed,
2) you press NEXT - form data are saved and now as we have all data we can run BRANCH,
3) if branch is not matching any expression then is going (in that case) to END,
4) if "add" is matching then is opening file attachments form and showing buttons - here as next node is obvious we are seeing FINISH (2) button

Is the result exactly the same as you are getting or different?

Thank you,
Miro


 image.png
 

Link to comment
Share on other sites

@Jeremy unfortunatelly it's not possible until data from form are being known. Evaluation can be done only when user click next button which update data and then run branch node.
However there is some work planned in that area so hopefuly this will be improved. 

Anyway this is how current implementation is working.

Thank you,
Miro

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...