I know I can put conditions in the template to control the output of the inputted data, but is there a way where the input form changes based on the type?
A drop-down where you can select type = photo, video or document
If photo then just the upload field and an alt field
If video it would be an option to input either a YouTube URL or a video URL
If it's a document, then just a file picker
Trying to make it easy for non-technical savvy folks to not screw up and not display all these fields and have them figure out which one they will have to fill out based on their needs.
Thank you!
Can LISE change form based on type?
Re: Can LISE change form based on type?
I expect this to be possible only with using a custom admin template and javascript to hide/show fields based on the choosen 'type'.
So all fields should be available (and NOT set required).
Using custom admin templates is possible but on every upgrade of the module you will have to test functionality again because of possible changes to the admin templates (which will be overruled by your old, custom templates).
https://docs.cmsmadesimple.org/customiz ... -templates
Note that the module_custom folder is moved to the /assets/ folder in recent versions of CMSMS
So all fields should be available (and NOT set required).
Using custom admin templates is possible but on every upgrade of the module you will have to test functionality again because of possible changes to the admin templates (which will be overruled by your old, custom templates).
https://docs.cmsmadesimple.org/customiz ... -templates
Note that the module_custom folder is moved to the /assets/ folder in recent versions of CMSMS
Re: Can LISE change form based on type?
Thank you Velden! I will take a look and give it a shot. Thank you for your time.velden wrote:I expect this to be possible only with using a custom admin template and javascript to hide/show fields based on the choosen 'type'.
So all fields should be available (and NOT set required).
Using custom admin templates is possible but on every upgrade of the module you will have to test functionality again because of possible changes to the admin templates (which will be overruled by your old, custom templates).
https://docs.cmsmadesimple.org/customiz ... -templates
Note that the module_custom folder is moved to the /assets/ folder in recent versions of CMSMS


