I hope you can help me out with this. I have a submission form (connected to a blank data source) which has 1 Virtual field. The data element of the Virtual field is 'Radio button'. I would like to save all the radio button values by passing each radio button value to another submission form (which is an auto-submit form).
I added this script in an HTML block of the fist submission form. I created a button
<input onclick="SubmitRec()" type="submit" value="Click me" />
<script>
function SubmitRec() {
var radios = document.getElementsByName("InsertRecordcbParamVirtual1");
for(i = 0; i < radios.length; i++) {
val = radios.value;
var url = "https://c2arw288.caspio.com/dp.asp?AppKey=da284000f17dcfea2642497980e7?assid=[@cbParamVirtual1];
window.open ('url');
}
}
window.close()
</script>
This script in the Footer
<script>
window.onload = function hide() {
document.getElementById("Submit").style.visibility = 'hidden';
}
</script>
Then I have this script in the Footer of the second submission form
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
NeoInJS
I hope you can help me out with this. I have a submission form (connected to a blank data source) which has 1 Virtual field. The data element of the Virtual field is 'Radio button'. I would like to save all the radio button values by passing each radio button value to another submission form (which is an auto-submit form).
I added this script in an HTML block of the fist submission form. I created a button
for(i = 0; i < radios.length; i++) {
val = radios.value;
var url = "https://c2arw288.caspio.com/dp.asp?AppKey=da284000f17dcfea2642497980e7?assid=[@cbParamVirtual1];
window.open ('url');
}
}
window.close()
</script>
This script in the Footer
<script>
window.onload = function hide() {
document.getElementById("Submit").style.visibility = 'hidden';
}
</script>
Then I have this script in the Footer of the second submission form
<script >
setTimeout('document.forms["caspioform"].submit()',1000);
setTimeout (window.close, 1000)
</script>
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.