I have a custom block type created through the UI and I used the configuration files to export it to a module. My custom block type has two fields and I want users to be able to fill out one or the other, but not both.

Is there way to implement that logic through the UI? If not, how can I create the custom block type in code and add this logic?


1 Answer 1


i just found this module that is supposed to do that


I believe a form alter function on a module should do the trick however i haven't implemented anything like it.

Good luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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