How get field type in field layout I'am building a website (craftcms 3.4+) where I'll need frontend entry editing. Therefore I'll need the fieldlayout of an entry. This is what I'll have:

{% for tab in entry.fieldLayout.tabs %}
        &lt;div class="form__row"&gt;
            &lt;h3&gt;{{ tab.name }}&lt;/h3&gt;
        &lt;/div&gt;
        {% for field in tab.getFields() %}
            &lt;div class="form__row"&gt;
                {% if field.type == 'plainText' %}
                    &lt;label for="etg"&gt;{{ field.name }}&lt;/label&gt;
                    &lt;input type="text" name="fields[{{ field.handle }}]" value="{{ attribute(entry, field.handle)}}"&gt;
                {% endif %}
            &lt;/div&gt;
        {% endfor %}
{% endfor %}


The problem of this is that field.type not excist. I'll need that because of the different field types I'm using. How I'll get the th
You can use the instance of test (docs) 

{% if field is instance of ('craft\\fields\\PlainText') %}


or use className (docs).

{% if field.className == 'craft\\fields\\PlainText' %}


In full:

{% for tab in entry.fieldLayout.tabs %}
    &lt;div class="form__row"&gt;
        &lt;h3&gt;{{ tab.name }}&lt;/h3&gt;
    &lt;/div&gt;
    {% for field in tab.getFields() %}
        &lt;div class="form__row"&gt;
            {% if field is instance of ('craft\\fields\\PlainText') %}
                &lt;label for="etg"&gt;{{ field.name }}&lt;/label&gt;
                &lt;input type="text" name="fields[{{ field.handle }}]" value="{{ attribute(entry, field.handle)}}"&gt;
            {% endif %}
        &lt;/div&gt;
    {% endfor %}
{% endfor %}


You can see all native Craft field types here.