1. krnsgrffn
  2. General
  3. Monday, June 23 2014, 09:27 AM
I am successfully throwing errors when certain input does not meet requirements on the admin side and resetting fields as needed, but I would really like it if I could prevent the form from closing if whoever is editing hits save&close. This is to get around the fact that fields do not keep their required status on the admin side, and also to prevent non-unique answers in some cases. I don't need nor do I want to prevent the save, i just need to prevent the close.

Any help would be great.

Thanks.
admin Accepted Answer
Admin
Hi,
I did not understand so much the problem, can you explain me with an example?

in any case, keep in mind that Easy Profile not replace Joomla User management, Easy Profile extend it. The admin area is managed by Joomla com_users.
  1. more than a month ago
  2. General
  3. # 1
krnsgrffn Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
You can use redirect on skeleton plugin, but this will not save the data.

Another way is to prevent non unique value, you can put in where this:
id NOT IN (SELECT DISTINCT partner_fieldalias FROM #__jsn_users  WHERE partner_fieldalias IS NOT NULL)


With next release the correct syntax will be:
id<>{user id displayedOrMe raw} AND id NOT IN (SELECT DISTINCT partner_fieldalias FROM #__jsn_users  WHERE partner_fieldalias IS NOT NULL)
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.