Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Combining upload with Arrays

  • krosser
  • krosser's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 1 month ago #181357 by krosser
Replied by krosser on topic Combining upload with Arrays
UPDATE

Looks like this edit has worked (based on your code update from the other thread):

Ending from the original code:
Code:
// Interrupt the Next/Submit function (to put upload questions back in the form)
    $('#ls-button-submit').on('click', function(e) {    
      $('.upload-modal').each(function(i) {
        $('.upload-files', this).css({
          'position': 'absolute',
          'left': '-9999em'
        });
        $('.group-container').append($('.upload-files', this));
      });
    });  
  });
</script>

Updated ending:
Code:
// Interrupt the Next/Submit function (to put comments back in the form)
    $('#limesurvey').submit(function(e) {  
      $('.upload-modal').each(function(i) {
        $('.upload-files', this).css({
          'position': 'absolute',
          'left': '-9999em'
        });
        $('.group-container').append($('.upload-files', this));
      });
    });  
  });
</script>

I'm using the latest LS 3.22 hosted on LS servers, not installed locally.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose