conditional visibility of two fields #953
-
I need to manage the conditional visibility of two fields in one of my Cruds, I asked chatGPT who proposed this code but it fails, is it wrong? Are there better methods?
Thanks for help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I've found another solution looking backpack demo :) and there i set my feature about fields |
Beta Was this translation helpful? Give feedback.
-
@karandatwani92 Is it possible to change a crud field property by js? |
Beta Was this translation helpful? Give feedback.
-
No, you can not create two fields with the same name. |
Beta Was this translation helpful? Give feedback.
I've found another solution looking backpack demo :)
on create method i add my js with Widget::add()->type('script')->content('assets/js/myjs.js');
and there i set my feature about fields