groceryCrudSetFieldValue does not trigger depended-relation loading for dropdown fields

Hello,

I’m using groceryCrudSetFieldValue('country_id', '181') which works fine by itself. However because I have state_id, city_id with setDependentRelation It only fills the country_id value without triggering .trigger('change') the state_id to get the values.

Is there a way by using groceryCrudSetFieldValue to get same results as I would select the country in the browser ?

Regards

Hello @Anwar ,

I can reproduce your issue and there isn’t currently any work-around for this. I will try to provide a solution for the next release which will be probably this weekend. I will keep you up to date on that.

Regards
Johnny

Thank you @johnny looking forward to it.