kevin
23 June 2026
The content provided is for general testing purposes only.
Target App
drupal_limrock
Version
v1
HTML Markup
<div id="worldtree-viewport-canvas" style="padding: 20px; max-width: 800px; margin: 0 auto;">
<main class="component-card" style="background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);">
<h2 style="margin-top: 0; margin-bottom: 25px; color: #1e293b;">
{{ .ActiveEntity.RawData.title }}
</h2>
<!-- FIX 1 & 2: Added enctype for binary/file handling and targeted action route -->
<form action="/api/ingest" method="POST" enctype="multipart/form-data">
<input type="hidden" name="field_form_id" value="student_id">
<input type="hidden" name="field_destination_app" value="drupal_limrock">
<input type="hidden" name="field_destination_entity_type" value="student">
<input type="hidden" name="field_destination_version" value="v1">
<input type="hidden" name="source_origin" value="architect_ui">
<input type="hidden" name="changed" value="">
<input type="hidden" name="field_cid_array" value="">
{{ range .ActiveEntity.RawData.field_5 }}
<div class="form-group" style="margin-bottom: 20px;">
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #334155;">
{{ .human_label }}
{{ if eq .is_required true }}<span style="color: #ef4444;">*</span>{{ end }}
</label>
{{ if eq .input_type "textarea" }}
<textarea name="{{ .machine_name }}" rows="4" style="width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;" {{ if eq .is_required true }}required{{ end }}></textarea>
{{ else if eq .input_type "file" }}
<input type="file" name="{{ .machine_name }}" {{ if eq .is_required true }}required{{ end }}>
{{ else if eq .input_type "select" }}
<select name="{{ .machine_name }}[]" multiple style="width: 100%; min-height: 100px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #fff;" {{ if eq .is_required true }}required{{ end }}>
{{ range .options }}
<option value="{{ . }}">{{ . }}</option>
{{ end }}
</select>
<small style="color: #64748b; display: block; margin-top: 4px;">Hold Ctrl (Windows) or Command (Mac) to select multiple choices.</small>
{{ else }}
<input type="{{ .input_type }}" name="{{ .machine_name }}" style="width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;" {{ if eq .is_required true }}required{{ end }}>
{{ end }}
{{ if eq .machine_name "title" }}
<small style="color: #0284c7; display: block; margin-top: 4px; font-weight: 500;">
💡 This title will identify this record block across the cluster registry index.
</small>
{{ end }}
{{ if eq .machine_name "schema_knows_language" }}
<small style="color: #0284c7; display: block; margin-top: 4px; font-weight: 500;">
💡 Select the languages you speak.
</small>
{{ end }}
</div>
{{ else }}
<p style="color: #94a3b8; font-style: italic; text-align: center;">No form layout input definitions found.</p>
{{ end }}
<button type="submit" class="btn-submit" style="cursor: pointer; padding: 10px 20px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-weight: 600;">
Submit Entry
</button>
</form>
</main>
</div>
<main class="component-card" style="background: #ffffff; padding: 35px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);">
<h2 style="margin-top: 0; margin-bottom: 25px; color: #1e293b;">
{{ .ActiveEntity.RawData.title }}
</h2>
<!-- FIX 1 & 2: Added enctype for binary/file handling and targeted action route -->
<form action="/api/ingest" method="POST" enctype="multipart/form-data">
<input type="hidden" name="field_form_id" value="student_id">
<input type="hidden" name="field_destination_app" value="drupal_limrock">
<input type="hidden" name="field_destination_entity_type" value="student">
<input type="hidden" name="field_destination_version" value="v1">
<input type="hidden" name="source_origin" value="architect_ui">
<input type="hidden" name="changed" value="">
<input type="hidden" name="field_cid_array" value="">
{{ range .ActiveEntity.RawData.field_5 }}
<div class="form-group" style="margin-bottom: 20px;">
<label style="display: block; font-weight: 600; margin-bottom: 8px; color: #334155;">
{{ .human_label }}
{{ if eq .is_required true }}<span style="color: #ef4444;">*</span>{{ end }}
</label>
{{ if eq .input_type "textarea" }}
<textarea name="{{ .machine_name }}" rows="4" style="width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;" {{ if eq .is_required true }}required{{ end }}></textarea>
{{ else if eq .input_type "file" }}
<input type="file" name="{{ .machine_name }}" {{ if eq .is_required true }}required{{ end }}>
{{ else if eq .input_type "select" }}
<select name="{{ .machine_name }}[]" multiple style="width: 100%; min-height: 100px; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #fff;" {{ if eq .is_required true }}required{{ end }}>
{{ range .options }}
<option value="{{ . }}">{{ . }}</option>
{{ end }}
</select>
<small style="color: #64748b; display: block; margin-top: 4px;">Hold Ctrl (Windows) or Command (Mac) to select multiple choices.</small>
{{ else }}
<input type="{{ .input_type }}" name="{{ .machine_name }}" style="width: 100%; padding: 8px; border: 1px solid #cbd5e1; border-radius: 6px;" {{ if eq .is_required true }}required{{ end }}>
{{ end }}
{{ if eq .machine_name "title" }}
<small style="color: #0284c7; display: block; margin-top: 4px; font-weight: 500;">
💡 This title will identify this record block across the cluster registry index.
</small>
{{ end }}
{{ if eq .machine_name "schema_knows_language" }}
<small style="color: #0284c7; display: block; margin-top: 4px; font-weight: 500;">
💡 Select the languages you speak.
</small>
{{ end }}
</div>
{{ else }}
<p style="color: #94a3b8; font-style: italic; text-align: center;">No form layout input definitions found.</p>
{{ end }}
<button type="submit" class="btn-submit" style="cursor: pointer; padding: 10px 20px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-weight: 600;">
Submit Entry
</button>
</form>
</main>
</div>
Target Entity
form
Style Block
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 8px; box-sizing: border-box; }
.btn-submit { padding: 10px 20px; background: #007bff; color: white; border: none; cursor: pointer; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 8px; box-sizing: border-box; }
.btn-submit { padding: 10px 20px; background: #007bff; color: white; border: none; cursor: pointer; }