Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
need help with components with form
TheYann
Hello everyone, here is my problem: I am trying to create a search component which is basically a very simple form. The problem is that the action of the form is another LiveSite page and I have tried everything to make it so everything would work properly in the preview as well as in prod but my form opening tag keeps disappearing.
Here is the html code (as I said, very simple):
[html]
[/html]
In this case I'm trying to get the page address from a Datum, also tried to directly put the $PAGE_LINK[myPage] in the action attribute but as soon as I do that, the form tag disappear.
As soon as I don't try to use $PAGE_LINK or Datum, the form tag stays.
Please help, how can I connect this form to another page so that it works ?
Find more posts tagged with
Comments
tec_iwov
what version of Livesite?
in pre 3.0 there was a bug in the form processing that if the method and action are configure it throw and exception...
Sorry not sure of a work around other than upgrade.
TheYann
It is version 3.0 for the moment.
Actually I did find a work around, with some javascript, my code now looks like this:
[html]
<script type="text/javascript">
function searchSubmit() {
document.search.action = "$PAGE_LINK[Search]";
return true;
}
</script>
[/html]
and this works ... it's a bit of a pain but at least it's not impossible!