You are viewing limited content. For full access, please sign in.

Question

Question

Hide all but last set in a collection. But retain values for all sets.

asked on August 14, 2018

Hi,

I have a form that needs to be reviewed and scored by multiple users. I have created a collection for them to enter their scores and comments. Each user can complete their task in no particular order (not serialized) and they should not see each other's scores. I have put together the following Jquery which is functioning the way I want it to in the form, but information being passed forward in the process is only the last user's submission.  I've also attached an image of the process to aid in understanding what i'm trying to do.

  $('#q340 div.form-q').hide();
  
  $("a.cf-collection-append.form-q").click(function(){
    
  $('#q340 div.form-q').hide();
  $('#q340 div.form-q').last().show();
  $(this).hide();

Thanks.

2018-08-14 10_13_56-Process Diagram _ Laserfiche Forms.png
0 0

Replies

You are not allowed to reply in this post.
replied on August 14, 2018

I don't know if that is going to work the way you want. I believe each of those parallel processes are trying to update the same variable but they are not passing data back and forth.

User B's inputs will not affect/update the data in User A's task, so if User B submits first, when User A submits their version it is overwriting the data submitted by User B.

Simply put, each submission updates the variable values based on its own form, and since each user task has a separate snapshot of the data they would overwrite one another.

You are not allowed to follow up in this post.

Sign in to reply to this post.