When you need to apply a small tweak to the document, it must not require much time to Catalog conditional field settlement. This sort of simple activity does not have to demand extra education or running through guides to understand it. Using the right document modifying tool, you will not spend more time than is necessary for such a swift change. Use DocHub to streamline your modifying process regardless if you are an experienced user or if it is your first time using a web-based editor service. This tool will require minutes to learn how to Catalog conditional field settlement. The sole thing needed to get more effective with editing is actually a DocHub account.
A plain document editor like DocHub can help you optimize the amount of time you need to spend on document modifying irrespective of your prior knowledge of such instruments. Create an account now and boost your productivity immediately with DocHub!
In this video tutorial, we will be implementing form States to conditionally show form fields. We will be using an already created module to create a boolean field that will be used as a state. By implementing hook form alter, we will implement the states logic. We have a Drupal instance installed with a content type called article and a body field. We will create a new boolean field called "with body", which will be hidden by default. When checked, it will show the body field, otherwise it will be hidden. The objective is to move it before the body field on the content creation form. When creating a new article, we will see the "with body" field next to the body field.