I have put some HTML in a "display a message" after a submission form, I want one button to reload the page fresh/empty fields, the other button to reload the page with a few parameters passed. For some reason when I try to do this using simple buttons anytime either of the buttons are clicked, the datapage is reloaded with errors for the required fields missing and does not pass parameters if I click on the button with the parameters.
Is this something specific to using buttons? I tested the same link as the button as just a link and it passes the parameters fine and loads like it should, its only when the buttons are used I get the error.
[@field:Gear_Item] was successfully issued to [@field:Name]<br />
<br />
<br />
<button onclick="window.location.href='https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1';">Click Here to issue more gear (New employee)</button> this button gives error
<button onclick="window.location.href='https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1&Name=[@field:Name]&Date_Issued=[@field:Date_Issued*]';">Click Here to issue more gear (Same Employee)</button> this button gives error
<a href="https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1&Name=[@field:Name]&Date_Issued=[@field:Date_Issued*]">Test</a> this link works fine
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
Fleshzombie
I have put some HTML in a "display a message" after a submission form, I want one button to reload the page fresh/empty fields, the other button to reload the page with a few parameters passed. For some reason when I try to do this using simple buttons anytime either of the buttons are clicked, the datapage is reloaded with errors for the required fields missing and does not pass parameters if I click on the button with the parameters.
Is this something specific to using buttons? I tested the same link as the button as just a link and it passes the parameters fine and loads like it should, its only when the buttons are used I get the error.
[@field:Gear_Item] was successfully issued to [@field:Name]<br />
<br />
<br />
<button onclick="window.location.href='https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1';">Click Here to issue more gear (New employee)</button> this button gives error
<button onclick="window.location.href='https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1&Name=[@field:Name]&Date_Issued=[@field:Date_Issued*]';">Click Here to issue more gear (Same Employee)</button> this button gives error
<a href="https://c0ebl237.caspio.com/dp/121230003612c6470a7a405e9d82?cbResetParam=1&Name=[@field:Name]&Date_Issued=[@field:Date_Issued*]">Test</a> this link works fine
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.