Form Confirmation Message
I have a form and when submitted, it's supposed to show a confirmation message. But the div that has the message has a style of "display: none". Is there something I can do to fix this?
<
div
id
=
"ctl00_ContentMain_C001_ctl00_successMessage"
class
=
"sfSuccess"
style
=
"display:none;"
>
Success
</
div
>
$(document).ready(
function
()
$(
'div.sfSuccess'
).each(
function
()
if
($(
this
).text() !=
''
)
$(
this
).show();
);
);
Hmm, are there script errors on the page at all? I dont have a sample infront of me, but when I see something like that I'd assume jQuery would run to show it at some later point...
...an easier way to show it would be adding this to your CSS
.sfSuccess
display
:
block
!important
;
No script errors on the page.
Yeah, that would work. Before the form is submitted, that div doesn't have a message. So it'd probably be safe to force it to always show... I guess just as safe as what I'm doing.
I like your solution better Steve. If I don't hear back on an actual solution, rather than a hack, I'll mark your's as the answer. Don't get me wrong, I'm not critical of your hack... it's a better hack than mine :)
Thanks
Oh yeah, totally a hack, no doubt :)
I just suggest it becasue I'm not sure myself...my forms all show the success message on submit fine
I am aware this thread is half a month old, but i am having the exact same problem.
Using FireBug it shows this:
<
div
class
=
"sfFormsEditor sfTopLbls sfFormsEditor sfTopLbls"
id
=
"ctl00_formCampaign_C000"
>
<
div
class
=
"sfErrorSummary"
id
=
"ctl00_formCampaign_C000_ctl00_errorsPanel"
></
div
>
<
div
style
=
"display:none;"
class
=
"sfSuccess"
id
=
"ctl00_formCampaign_C000_ctl00_successMessage"
>Success! Thanks for filling out our form!</
div
>
</
div
>
Hello Louis,
Have you tested with a newer version like build 1339?
Kind regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
I have upgraded to 4.1.1395.0 and i am still seeing the same issue...
Thanks,
Louis
Hello Louis
I am not able to replicate the issue with the latest release
<div class=
"sfSuccess"
id=
"C000_ctl00_ctl00_successMessage"
><br> Success! Thanks
for
filling out our form!<br> </div>
Apologies,
I have just tried this again, having restarted the website, and the issue has been resolved.
Many thanks,
Louis
Weird, we are using Sitefinity 4.3.1885.0 PE and still experience this issue. Before form submit:
<
div
id
=
"cph_MainSectionContent_C014_ctl00_ctl00_successMessage"
class
=
"sfSuccess"
style
=
"display:none;"
> </
div
>
<
div
id
=
"cph_MainSectionContent_C014_ctl00_ctl00_successMessage"
class
=
"sfSuccess"
style
=
"display:none;"
>
Success! Thanks for filling out our form!
</
div
>
We are using 5.0 and have this problem.
@Michael, actually, we are using the same plugin for our 4.3 version. Maybe it has something to do with it, I actually haven't looked into that one more specifically.