Jump to content


  • Posts

  • Joined

  • Last visited

Syvill's Achievements


Newbie (1/14)



  1. Here is what I'm trying to do: Right now, it's working just fine but without the Qty field. The user will have to enter the the purchases one by one. With the Qty field, I got that working with javascript (only works in Edge for some reason). I tried your triggered action sample, I think it's adding purchases depending on the number in the Qty Table? or I might've missed something. Below is what I'm trying to do. My logic is it will add entries if the count of entries that have the same Purchase_ID is less than the #inserted.Qty. I can't seem to make it work. Am I doing it wrong?
  2. I totally forgot about the triggered actions! Thanks for reminding me. I'll explore into that. Anyway, the max limit they can submit is 12 per submission. Kinda like a card they need to fill in. Once they have 12 purchases they get a free product.
  3. Hi all, I'm fairly new to javascript and I'm working on this frequent buyer website. What I'm trying to do is to submit the form multiple times base on user input. I have this code: <SCRIPT> document.addEventListener('BeforeFormSubmit', function (event) { var countx = document.querySelector('[id*=Purchase_count'); for (var i=1;i < countx.value;i++) { document.getElementById("caspioform").submit(); } }) </SCRIPT> Is there a reason why it's not working properly in google chrome but works fine on Edge? Here's my datapage: https://c1abc789.caspio.com/dp/3dca7000a203fdee67e14f3ebfa1 Feel free to submit some test records. Thanks in advance for any help I can get on this.
  • Create New...