Jump to content

Can I do the same with a link as with a submit button in a form?


This topic is 6418 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi All.

Have a lot of trouble with making a text link work as a submit button in a form.

Have a form with 4 buttons I would like to change to text links. The form works fine with buttons. In the form with buttons I use token to set a value depending on the button clicked on.

Want to change the buttons to text links (looks better in the design used)

This works OK as submit buttons in the form:

It sends the token to the resultpage and all is fine:

Then I tried this:

This works OK as submit link but I need the token too.

function formSubmit()

{

document.getElementById("myForm").submit()

}

)

Bil

Then I changed it to this:

Bil

But it does not work. Anyone know if it's possible to send the token by clicking on a text link? And still send the rest of the form fields so they can be used as actionparam on the next page.

Any help would be great.

Thanks The Dog

Link to comment
Share on other sites

  • 1 month later...

Woof! Hi, Dog! I haven't done it myself but I think you can do what you want with the right JavaScript script, so you're on the right track but I don't know enough JS to troubleshoot your script. Another option you might consider, though, is to use an IMAGE as a button instead... it can even look like text if you want, too. I used to use images as submits all the time and they work great!

--ST

Link to comment
Share on other sites

This topic is 6418 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.