multiple lines form - field on click event

Dear all
Could anyone help me on this?

  • I have a multiple lines form where each record contains a field I would like each time the user click on it a popup window should be opened and show an image/url using the field content as a parameter. Just to give you an example:

Field content = A49
when I click on it a popup window should be addressed to “http://www.lmgtfy.com/?q=” + field content
so the final result should be “http://www.lmgtfy.com/?q=A49

How can I do that?
I’ve tried with Javascript and AJAX onclick events but do not know how to pass the field content as a parameter to window.open function

thanks

Re: multiple lines form - field on click event

When you create your link to the popup app using SC wizard, or using sc_link(), send ‘A49’ as param.

In the called form, use onLoad catch the var

{link_field} = {link} . [var]

Regards,
Scott.

Re: multiple lines form - field on click event

Many thanks Scott for your reply.

Since I’m not very familiar with Javascript I’ve followed a different approach:

  1. I first create a form with the key field (hidden) and the field including the image to be shown.
  2. I’ve added a field link in the form to that new form that is shown as modal. I’ve tried to remove the full set of buttons but then the form is not loaded, I had to keep the first-record and exit buttons

I’m thinking about how to handle this using Javascript since I prefer to show directly the picture associated either to onmouseover or onclick events

If you can go further on your explanation I would really appreciate

Regards

Re: multiple lines form - field on click event

The onLoad I was speaking of was from Events.onLoad, not JS onLoad.

The other alternative is to just use SESSION variables. I have several posts regarding this issue in these forums.

[var] is what is sent from the link you created as a GET/POST (hint: SC just creates a session var for this aliased as a global var)

Regards,
Scott,