I have a two page multiform, the first page is for login, the second two answer a simple question. If the login is invalid I want to re-display the login page.
Where is the Joomla login validation supposed to go? I've put it on both the page that it should transfer to on success, and the page the login form is on. The first simply doesn't validate, going to the next action even if the login is invalid, the latter complains about empty login details.
I've looked hard for information about this but not been able to find anything.
Hi MarkS,
You need to validate the login on the form Event that the fist page of the form submits to. In a single page form this would typically be the On Submit event - but in a two page event it is probably the new event that you added.
ChronoForms doesn't have a Login Validator built in so are you doing this with some Custom Code?
Bob
HI Bob,
I must've misunderstood more than I thought, then.
I used the Joomla Login action from the Joomla section on the setup form.
What does that do? I looked for information about it here, but couldn't find anything so I guessed 😶
Hi MarkRS,
OK that makes sense - I was looking for something called a Joomla! Validation action.
Use the Joomla! Login action as the first action in the new Event as I described above. Add an Event Loop action (or a Redirect action) to the pink On Fail event. Usually the default setting of this is good - it will reload the first page of the form.
Bob
Hi,
I was afraid you were going to say that 😟
Yes, that's what I've done, tho' it's not the only thing I've done. Hmm, I was going to attach a backup of the form, but it looks like I can only do that to the first message in the topic.
It's a competition page, a simple text entry answer to a single question. I only want logged in people to answer, so I've got two pages, the first one with a login and register section (is that too ambitious), and the second page the competition.
If the person is already logged in it should go straight to the second page, that works. Otherwise it should ask them to login (or register). That works, but even if I give a rubbish account it still goes through to the question page.
What should I show (and how) to illustrate my incompetence? :?
Hi Mark,
If you use the Blue Arrow reply button (to the top left) then you can add an attachment - you can't if you use the 'Quick Reply'. Please upload the attachment before clicking Submit
Bob
Ahah! So I can, thanx 🤣
Ok, here's my form, corresponding to the description already given.
The login and registration sections as supposed to be independent so someone can either log in or register.