I have a requirement where i need to disable buttons once the user submit the form. I tried using buttonaction rule input but its not working . Any suggestions?
Discussion posts and replies are publicly visible
Can you give us more details about your use case?
I general a form is closed after submit. There is the exception of a process model using a start form as a page in a site. Then the user will just see the empty form again.
Even after submitting the form, the submit buttons are enabled. It's getting disabled when there is no data but when the user edits any field it gets enabled again. But now the requirement is once it's submitted, it shouldn't provide users the ability to submit again.I tried with button action value with if condition but didn't worked
As I tried to explain, I do not understand your implementation. Do you have a few more details? Screenshot, code snippets?
if( ri!canSubmit, a!buttonWidgetSubmit( label: "Submit", style: "PRIMARY", value: cons!L_BUTTON_VAL_SUBMIT, saveInto: ri!buttonAction, disabled: if( isnull( ri!noData ), rule!SS_ER_isEmpty( ri!Items, ri!Value, ), false ), skipValidation: if( isnull( ri!noData ), false, true ) ), {} ),
OK. To make it more clear. The interfaces I build do close on submit. Yours seem to not do that. There must be a difference which I do not understand.
yes its giving user ability to submit again even after submitting
How is that done? A loop in the process model?
Submitting a form leaves the form, as Stefan has been trying to explain. Thus, under any normal configuration, "disable buttons once the user submits" just does not make sense.
Can you tell us exactly how you have this form configured / where you're using it, and exactly what the user is experiencing?
NOTE: You've tried this in a process, and not just in the interface designer, I hope?
Yes, its being used in the process where it's setting the button action value.
Where in the process is it being used? How/where is the process accessed by users? What happens in that process after this form has been submitted? A screenshot of the snippet of the process where the form in question is being used might also help.