Skip to content
Advertisement

How to check whether field exists in symfony2 form?

Using this manual, I added dynamic field to my form. Now, how can I check existence of this field in my template?

JavaScript

Advertisement

Answer

What about,

JavaScript

You may also need to check if form.myDynamicField is not null.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement