mrjon
  mrjon
Silver Member
  Tuesday, 25 July 2017
  13 Replies
  1K Visits
0
Votes
Undo
I have an issue on a new build which is set up the same as an existing build but they're not working the same (new build is on latest Joomla).

When adding an event in the backend there are 3 required fields which show the label but not field as they are already inputted at the login stage, name and email, but upon save the system says these are missing.

I've looked all over but cannot see how to rectify this.

Here's the 'custom edit form' code:


<h3>YOUR DETAILS</h3>

<div class="control-group" >
<div style="float:left;">{{Your Name Label:customfield_anonusername_lbl}}</div>
<div class="controls">
{{Creator Name:anonusername}}
</div>
</div>



<div class="control-group">
<div style="float:left;">{{Your Number Label:customfield_field22_lbl}}</div>
<div class="controls">
{{Your Number:customfield_field22}}
</div>
</div>

<div class="control-group">
<div style="float:left;">{{Email Address Label:customfield_field5_lbl}}</div>
<div class="controls">
{{Creator Email:anonemail}}
</div>
</div>




The issue is on both the front and the admin side of the following site 77.92.84.1/~inntemp
Support Info
Development
Tuesday, 25 July 2017 14:52
·
#191332
0
Votes
Undo
Can we see a link to see how this is output?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 25 July 2017 15:09
·
#191336
0
Votes
Undo
Here is the link to add an event http://77.92.84.1/~inntemp/index.php/add-an-event/icalevent.edit/0
You will have to test on the backend to see the error (as I'm currently struggling to get the Captcha to work on a temporary URL as Google captcha wont allow a domain with a forward slash in it anymore).
Backend login provided in login tab.
Saturday, 29 July 2017 17:16
·
#191446
0
Votes
Undo
Hello,

I have fixed this on your site. The problem was because you have created JEvents Custom Fields and included them to be rendered in your edit layout. Just adding <!-- --> stops the HTML showing on the page but not being rendered.

I've set these fields in your custom fields as no required as you are using the anon plugin so it saves now.

You really need to clean out your JEvents custom fields and event edit template.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 01 August 2017 13:59
·
#191546
0
Votes
Undo
Hi Tony. Thanks for this.

I have removed all the 'commented out' sections in the 'edit' template.
I'm not 100% sure which fields to clear out in the' JEvents Custom Fields' as most of these where auto-populated when this new system was introduced.

Here's the continuing issue with the current setup. I need 'anon user' plugin on so people can add a location when using the form. I also need those 2 fields (your name and your email) as required fields but they disappear when logged in when set to required it's stopping logged in users adding events (didn't used to). I could create new custom fields for email and name but then when logged in you have to keep adding this info when it's not necessary (again, current live site works fine in the way it should but I cannot see how the set up differs).

Hope this is clear.
Tuesday, 01 August 2017 21:08
·
#191566
0
Votes
Undo
So why do you need the name and email if the user is logged in? Since we have them as part of the user?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 02 August 2017 09:26
·
#191598
0
Votes
Undo
I don't need it when they're logged in and the fields (excluding the labels) do actually disappear when logged in which is great except the form still requests this field even when logged in... and the fields are now hidden so you cannot progress.
Wednesday, 02 August 2017 10:23
·
#191600
0
Votes
Undo
Hello MrJon,

I've just created a test event in the backend of your site without the need to enter a name/email.

Can you please tell me how I can replicate this issue?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 02 August 2017 12:20
·
#191604
0
Votes
Undo
You changed these 2 fields to 'not required' so you will be able to save them in the back at the moment, I want them as 'required' for none registered users on the front (which is what causes the saving issue in the back end).
Wednesday, 02 August 2017 12:57
·
#191606
0
Votes
Undo
Hello Jon,

Sorry but this is still very confusing. The anonymous user events plugin requires name and email address in the frontend? IF the user is logged in you have the name and username linked with their account.

What's the problem here exactly?

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 02 August 2017 16:37
·
#191614
0
Votes
Undo
Sorry. Here's the problem.

I want non-registered users to be able add events but I want to capture their data (name and email)

On the front end of the site:
1. If plugin 'anon user' is turned off then the name and email fields disappear (see attachment 1).
2. When 'anon user' plugin is turned on the name and email fields are visible (see attachment 2). This is good however, I want them mandatory.
3. If I make these fields mandatory in 'custom fields' everything looks and works great for non registered users (see attachment 3) however...
4. When you login (front or back) these fields then disappear (which is what I want, a user shouldn't need to re-input details we have) but it then wont allow the logged in user to save as it asks for the info from these hidden fields (see attachment 4).

You can get around point 4 by making these 2 fields not mandatory but then point 3 doesn't work.


Additional info:
a) It works as expected on my other site http://www.innorthnotts.co.uk but I cannot see what's set differently. [NB I have not upgraded Joomla on that one beyond 3.6.x]
b) It woulds also be nice, if possible, that the labels for these 2 fields disappear too as well as the fields/boxes themselves.

Thanks again for your time. Hope this is clearer, I'm going around in circles myself on this one.
Wednesday, 02 August 2017 17:20
·
#191616
0
Votes
Undo
Hello,

1. Correct
2. The anon plugin makes them Required by default....
3. You do not use the Custom Fields plugin for name/email. You need to remove these fields.

Fundamentally the problem is you have created custom fields for name/email which are just not needed.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Wednesday, 02 August 2017 23:25
·
#191631
0
Votes
Undo
Thanks Tony. Figured it out from this. I was using the custom fields so I could create just the labels as there are no labels available in the anon options in custom layout. This had also allowed me to create a tooltip in the same style as other labels easily.

I have removed the labels and made them manually in the custom layout and removed the custom fields too as suggested.

Thanks for looking into this.
Thursday, 03 August 2017 09:16
·
#191639
0
Votes
Undo
No problem and you are very welcome.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.