⚠ In case you've missed it we are migrating 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 forum is read-only and soon will be archived. ⚠


set_rules callback functions label

  • Please log in to reply
1 reply to this topic

#1 mbanolas1947



  • 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?



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

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