Can LISE change form based on type?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Can LISE change form based on type?

Post by rbaby »

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!
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Can LISE change form based on type?

Post by velden »

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
rbaby
Forum Members
Forum Members
Posts: 144
Joined: Thu Feb 07, 2008 10:28 pm

Re: Can LISE change form based on type?

Post by rbaby »

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
Thank you Velden! I will take a look and give it a shot. Thank you for your time.
Locked

Return to “Modules/Add-Ons”