Adventures with Model-Driven Apps: Deleting Required Fields from a Form

I accidentally – or purposely, for the sake of having something to figure out – added the Status field for a Car entity to Car Main Form form.

Figure 1 – Status field on Car Main Form

Whoops! 🤦‍♂️

I don’t really need it on the form as Activate and Deactivate buttons will handle setting the Status for me.

I clicked on the Status field and then went to click the Delete button, but wait, it’s not there?! 😱

It should be right next to the Hide option!

Figure 2 – Missing Delete button

The reason why it can’t be deleted is because the Status field is required and once added to a form, cannot be removed.

I suppose I could just Hide the Status field. 🥷

Figure 3 – Hide the Status field

That would work, but I really don’t need it on there! Is there a way to get rid of it?

Yes, there is! 🤩

Add a new 2-column tab.

Click on New Tab.

Add the Status field to New Section on the far right, you will have to uncheck Show only unused table columns to get the Status field to display.

Figure 4 – Add Status field to New Tab

Switch back to the General tab, select the Status field, and what do you know? Delete is available!

Click Delete.

I thought I could just delete the New Tab, but nope, it won’t let me.

I instead, change the Layout of the New Tab from 2 columns to 1 column.

The New Section in the second column is removed, along with the Status field! 🥳

Now you can Delete the New Tab.

Figure 5 – Change New Tab Layout and then delete

Click Save and publish.

That’s it! It’s gone! Never to be seen again! 🙋‍♂️

Leave a Reply

Your email address will not be published. Required fields are marked *