Jump to content


set_rules

set_rules callback functions label

  • Please log in to reply
1 reply to this topic

#1 mbanolas1947

mbanolas1947

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 26 December 2017 - 10: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.

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

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 :)







Also tagged with one or more of these keywords: set_rules, callback functions, label

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users