⚠ 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

callback Field Grocery CRUD Enterprise



gareeji
  • profile picture
  • Member

Posted 09 May 2017 - 00:28 AM

can I used callback field such as http://www.grocerycrud.com/documentation/options_functions/callback_field

 in grocerycrud enterprise, because I'm no see in documentation  grocerycrud enterprise

 

thanks


web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 11 May 2017 - 04:06 AM

Hello there,

 

There isn't such functionality for the moment. Grocery CRUD Enterprise is using reactJS and to add HTML into the JavaScript is considered as security issue. For more you can check http://stackoverflow.com/questions/37337289/react-js-set-innerhtml-vs-dangerouslysetinnerhtml . The only solution really is to use dangerouslySetInnerHTML in order to achieve that.

What are you trying to achieve exactly? Is is a generic question or you are trying to create a new field type that doesn't exist?

 

Thanks

Johnny


maksimd
  • profile picture
  • Member

Posted 30 May 2017 - 15:38 PM

Hello Johny,

I also face the same issue.
For example, I need to create

1) a multiselect of checkboxes (which is not anymore in enterprise version)
2) a text field with custom autofill from a database

Maksim


web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 20 September 2017 - 03:32 AM

Hello guys,

 

We have an update as The current functionality is now available in Grocery CRUD Enterprise 

 

More specifically we now have the functions:

- callbackAddField

- callbackEditField
- callbackReadField

 

Regards

Johnny