⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

set_rules



mbanolas1947
  • profile picture
  • Member

Posted 26 December 2017 - 22:21 PM

I am using several set_rules with different fields using all the fields the same callback function.

I know, that the first parameter passed is the value of the field, but

is it possible to know the field name of the field in order to be used in the callback function?

Thanks.

 


Amit Shah
  • profile picture
  • Member

Posted 27 December 2017 - 04:10 AM

I doubt it will be possible - as the callback functions - system is not revealing what field it is being called up for. If you want to do it, you need to hack into the system, exclusively pass the field information along with the callback.. only then it will be possible for you to determine.

 

Happy GCing :)