Authenticator and Load JS issue?

RemoP 03 Oct, 2011
Hi,

Using Chronoforms 4.0 RC2.0 on Joomla 1.7

I'm having a weird issue with the Authenticator Event.. I built a form with the following onload events configured:

Load JS
Show html

The JS works as expected on the html that is being showed (i.e. hiding some of the fields for starters and unhide fields when other fields are being filled in). When I then add the Authenticator to the onload events (Doesn't matter if it's 1st in the list or right after the Load JS) and configure it to only allow people in the registered and up groups and set 'Allow guest' to NO, the JS stops working (i.e. shows fields that were supposed to be hidden on load).

When I then switch Allow guest to Yes, it starts working again (even with all groups selected, except Public). But then unregistered users can access the form as well..

Any ideas what could be causing this behaviour?

Let me know if you need more details.

Thanks, Remo.
GreyHead 03 Oct, 2011
Hi Remo,

I haven't used the Authenticator at all so have no experience. Hard to explain other than a bug,

Please post a link to the form so I can take a quick look.

Bob
RemoP 04 Oct, 2011
Hi Bob,

Just sent you a mail through this site. Let me know if you need more details.

Regards, Remo.
GreyHead 04 Oct, 2011
Hi Remo,

I don't see any email or PM from you. Please click the PM link under my picture and re-send.

Bob
RemoP 04 Oct, 2011
Hi Bob,

Just sent you a PM. Did you get it? I see it in the outbox of my PM's.. is that correct?

Thanks, Remo.
GreyHead 04 Oct, 2011
Hi Remo,

Got it, thank you.

Bob
GreyHead 05 Oct, 2011
Hi Remo,

I think it is a timing problem. I can't see any link with the Authenticator.

I left your form unchanged but made a copy that always failed for me (with or without the Authenticator). The JavaScript is conditional on the jQuery library being loaded so I added an alert to show a message when it wasn't loaded. That popped up each time. I fixed it by wrapping the script in
window.addEvent('domready', function(){
. . .
});
which works with MooTools loaded to delay the script running.

The copy form seems to be OK now.

Bob
RemoP 05 Oct, 2011
Thanks Bob!

I'm glad it's not related to the authenticator. The copy form seems to work as expected, so thanks for the advise and fix!

Thanks for your time on this. Very much appreciated!🙂

Regards, Remo.
This topic is locked and no more replies can be posted.