I have several custom fields I added to my CMS pages but I only want them to show up on the backend if the admin user selects a specific template. For example, the text field "doctor name" would only show after "doctor" template was selected under layout->Design

New fields are added through the cms_page_form.xml and InstallSchema.php


It's pretty simple, I've check out this guide and hope it might be helpful for you. And please check the widget options in order to display.

Have a look: https://magenticians.com/magento-cms/

  • Neither the "answer" or the link address how to restrict custom CMS entry fields based on the template type – Sam Jun 30 '20 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.