[solved] FormBuilder: Won't submit for some users..
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
[solved] FormBuilder: Won't submit for some users..
Hi,
So, i've got this CMSMS running for the company I'm working for. There we have a simple system where you can ask for a quote, and/or put a order. All through rather simple forms made by formbuilder.
Now, we've seen a few customers that cant submit the form. When clicking submit nothing basicly happens.. Everyone seems to explain it that when they push the button it turns, from white, to black and then nothing. The funny thing is that the button is suppose to be black, clicked or not. Now the color itself isnt a huge problem .. it just might be a part of the problem.
So my questions is; Why can't some submit the form? And how do I fix it? Is it a firewall blocking the JS?
Any help much appreciated!
So, i've got this CMSMS running for the company I'm working for. There we have a simple system where you can ask for a quote, and/or put a order. All through rather simple forms made by formbuilder.
Now, we've seen a few customers that cant submit the form. When clicking submit nothing basicly happens.. Everyone seems to explain it that when they push the button it turns, from white, to black and then nothing. The funny thing is that the button is suppose to be black, clicked or not. Now the color itself isnt a huge problem .. it just might be a part of the problem.
So my questions is; Why can't some submit the form? And how do I fix it? Is it a firewall blocking the JS?
Any help much appreciated!
Last edited by superstoffe on Fri May 22, 2009 8:35 am, edited 1 time in total.
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
By the way..
Im running CMS 1.5.1 "San juan" with latest Formbuilder and FEUser.
Link: http://www.kph.se/index.php/webbestallning (swedish)
Im running CMS 1.5.1 "San juan" with latest Formbuilder and FEUser.
Link: http://www.kph.se/index.php/webbestallning (swedish)
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
Hi,
I have no solution but I think you have to reproduce the situation first of all. What internet browsers are used by the customers who can't submit the form?
Vilkis
I have no solution but I think you have to reproduce the situation first of all. What internet browsers are used by the customers who can't submit the form?
Vilkis
Re: FormBuilder: Won't submit for some users..
What's the Url of the form action... you may need to try to relapce it with stright imdex.php.
Cheers
Jeremy
Cheers
Jeremy
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
Hey,vilkis wrote: Hi,
I have no solution but I think you have to reproduce the situation first of all. What internet browsers are used by the customers who can't submit the form?
Vilkis
Thats the thing really, from what I can remember they have used both Firefox and Explorer, nothing different from what I, or other customers, use for example. Nothing seems to be out of the ordinary. :/
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
Hey Jeremy,JeremyBASS wrote: What's the Url of the form action... you may need to try to relapce it with stright imdex.php.
Cheers
Jeremy
It is actually. Is that what you meant?
Re: FormBuilder: Won't submit for some users..
Yes that is it.. was that your URL? A straight copy? If so... what do the logs say? Admin logs to Server logs... run it in IE, do you see an error after submit? It'll happen really quick and you may not have a chance to click it and find out what it is but all this is the next step...superstoffe wrote:Hey Jeremy,JeremyBASS wrote: What's the Url of the form action... you may need to try to relapce it with stright imdex.php.
Cheers
Jeremy
It is actually. Is that what you meant?
Cheers
Jeremy
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
After some more research I've noticed that somewhat older systems, the webserver itself included, that runs Explorer conflicts with the two Forms (FEU login and the FB form itself). The form in other words fails if not logged in. If logged in however the main form submits fine.
So in some way the 's conflict. The question is why, and how to fix it?
Is it the two forms or is it the fact they both use index.php that fails? What do you think Jeremy?
To add: They FEU login is for prefilling the form .. so that people using it often doesnt have to write everything over and over again.
So in some way the 's conflict. The question is why, and how to fix it?
Is it the two forms or is it the fact they both use index.php that fails? What do you think Jeremy?
To add: They FEU login is for prefilling the form .. so that people using it often doesnt have to write everything over and over again.
Last edited by superstoffe on Tue May 12, 2009 12:12 pm, edited 1 time in total.
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
Anyone with quick fix for this? 

Re: FormBuilder: Won't submit for some users..
Try this... put this i a udt
and then put that for the action...
Code: Select all
$urlBASE = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
if (!empty($_SERVER["QUERY_STRING"]))
$urlBASE .= "?".$_SERVER['QUERY_STRING'];
if (isset($config['assume_mod_rewrite']) && ($config['assume_mod_rewrite']==true)) {
$urls = str_replace("index.php?page=", "", $urlBASE);
}else{
$urls = $urlBASE;
}
echo $urls;
and then put that for the action...
Re: FormBuilder: Won't submit for some users..
Sorry I made a mistake here...
so where you put {UDTname} ie the action="" you'll get the page... sorry for the typo...
Cheers
jeremyBass
Code: Select all
global $gCms;
$urlBASE = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
if (!empty($_SERVER["QUERY_STRING"]))
$urlBASE .= "?".$_SERVER['QUERY_STRING'];
if (isset($gCms->config['assume_mod_rewrite']) && ($gCms->config['assume_mod_rewrite']==true)) {
$urls = str_replace("index.php?page=", "", $urlBASE);
$urls = str_replace("index.php", "", $urls);
}else{
$urls = $urlBASE;
}
echo $urls;
Cheers
jeremyBass
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
Thanks Jeremy, I'll try that! Do I "hardcode" the action, cause I find it in the adminpanel?
For example:
Instead of:
I piut this this, in the FEU login template:
In FEU settings you can set what page you should "land on" after logging in, that I set to same page id .. as I wanted the user to come back to the prefilled form (obviously). Now, can I do something there instead?
For example:
Instead of:
Code: Select all
{$startform}
Code: Select all
<!-- this is a sample template, feel free to customize it -->
<form id="m5moduleform_2" method="post" action="{loginfix}">
<div class="hidden">
<input type="hidden" name="mact" value="FrontEndUsers,m5,do_login,1" />
<input type="hidden" name="m5returnid" value="69" />
<input type="hidden" name="page" value="69" />
</div>
In FEU settings you can set what page you should "land on" after logging in, that I set to same page id .. as I wanted the user to come back to the prefilled form (obviously). Now, can I do something there instead?
Last edited by superstoffe on Wed May 20, 2009 8:19 am, edited 1 time in total.
-
- Forum Members
- Posts: 50
- Joined: Fri Jan 16, 2009 1:07 pm
Re: FormBuilder: Won't submit for some users..
I'm sorry Jeremy but that didn't help I'm afraid.
From what I understand the UDTäs whole purpose is to put http://www.domain.com/index.php instead of just index.php, right!?
I can login no problems there, its all the same as before. I guess you just cant use the index.php as action in a form multiple times on one page, even though your write the source differently. Its sort of obvious really. But how the h... do I solve it?
From what I understand the UDTäs whole purpose is to put http://www.domain.com/index.php instead of just index.php, right!?
I can login no problems there, its all the same as before. I guess you just cant use the index.php as action in a form multiple times on one page, even though your write the source differently. Its sort of obvious really. But how the h... do I solve it?

Last edited by superstoffe on Wed May 20, 2009 2:17 pm, edited 1 time in total.
Re: FormBuilder: Won't submit for some users..
The udt was to just test... at this point I'd have to say I don't have enough information to help... I need to see the form... could be as simple as a naming issue as your hard coded the action id.. and sometimes that will error and die without a word... try counting your actions and make sure your pointed in the right spot... or {get_template_vars}....
Cheers
Jeremy
Cheers
Jeremy