I am working on admin form which is generated by gii CRUID.
I have 3 fields in database:
advertise_type (enum: Image, Embed Code) : Radio Button
advertise_image (varchar) : File
advertise_embed_code (text) : Textarea
Default all 3 fields are shown. I want to show only advertise_type, now when user selects ‘Image’ then show advertise_image, and if he selects ‘Embed Code’ then show advertise_embed_code.
Based on advertise_type selection validation should be fired.
But i was checking if YII have any such default functionality? Like we can create dependent dropdown in YII without using js code.So i thought this may be also possible.