Note that there are some explanatory texts on larger screens.

plurals
  1. POLimit form submissions based on form selections
    primarykey
    data
    text
    <p>I have a consumer website that gives users an approval form that I want allow the users to submit their approvals but I want to limit the form number submissions based on the certain selections made and a combination of previous selections submitted. As of now, the users always have access to the form even after they approve it and I would like to stop submissions after they approve it.</p> <p>There are 3 set of selections:</p> <p><strong>Set 1</strong> [Initial Options at first, none of the other sets should be shown.]</p> <p>Approve (radio button)</p> <p>Disapprove (radio button)</p> <p><strong>Set 2</strong> [This set is dependent on Set 1's selection. If the "Disapprove" from Set 1 is selected, then this set should be shown. Otherwise it will be hidden.]</p> <p>Revision (radio button)</p> <p>Correction (radio button)</p> <p><strong>Set 3</strong> [This set is dependent on Set 2's selection (and of course Set 2 being visible). If the "Revision" or "Correction" is selected from Set 1, then show either "Revision text" or "Correction text" based on the corresponding selection from set 2.]</p> <p>Revision text (textarea)</p> <p>Correction text (textarea)</p> <p>Set 2 is dependent on Set 1's, and Set 3 is dependent on Set 2's selection.</p> <p><strong>Ok, these are the submission total I would like based on the selections:</strong></p> <ul> <li><p>If the user...<strong>first approves</strong>, dynamically <strong>set the total submissions to 1</strong>. Form will not submit the next time, counting the current submission as 1.</p></li> <li><p>If the user...<strong>first disapproves</strong>, dynamically <strong>set the total submissions to 2</strong>. Remaining one more submission, counting the the current submission as 1.</p></li> <li><p>If the user...<strong>first approves and then disapproves</strong>, dynamically <strong>set the total submissions to 3</strong>. Remaining one more submission, counting the the current submission as 1.</p></li> <li><p>If the user...<strong>first disapproves and then approves</strong>, dynamically <strong>set the total submissions to 2</strong>. Remaining one more submission, counting the the current submission as 1.</p></li> <li><p>If the user...<strong>first disapproves and then chooses revision</strong>, <strong>show the revision textarea</strong> and dynamically <strong>set the total submissions to 2</strong>. Remaining one more submission, counting the the current submission as 1.</p></li> <li><p>If the user...<strong>first disapproves and then chooses correction</strong>, <strong>show the correction textarea</strong> and dynamically <strong>set the total submissions to 2</strong>. Remaining one more submission, counting the the current submission as 1.</p></li> </ul> <p>This is the general pattern I would want to the submission limits. So basically, if the user approves they can no longer submit the form after the current submission. If the user disapproves they are only allowed 2 additional submissions. I haven't fully worked it out, but Im hoping to get some suggestions and help from some experts.</p> <p>Another thing to consider are any alternatives if the user has javascript disabled and their cookies turned off (if the given solution requires them.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload