Skip to content

Commit f6be082

Browse files
committed
fix form submission issue
1 parent c3ccfb7 commit f6be082

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

layouts/shortcodes/dynamic_form_engine.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h4>
6262
<!-- text area -->
6363
{{ if eq .type "textarea" }}
6464
<div class="col-md col-sm-12">
65-
<textarea type="text" class="form-control" id="{{.identifier}}" name="{{.label}}" {{if .required}} required {{end}}
65+
<textarea type="text" class="form-control" id="{{.identifier}}" name="{{.title}}" {{if .required}} required {{end}}
6666
rows="4" cols="50"></textarea>
6767
</div>
6868

@@ -73,7 +73,7 @@ <h4>
7373
<div class="col-12 form-group">
7474
<label class="my-2 d-flex">
7575
<input type="{{$input.type}}" class="form-control checkbox" name={{$input.identifier}} id="{{.id}}"
76-
value="{{.value}}" {{if $input.required}} required {{end}} name="{{.label}}" />
76+
value="{{.value}}" {{if $input.required}} required {{end}} name="{{.title}}" />
7777
<h6 class="d-inline mb-0 ml-2">{{ .title | markdownify }}</h6>
7878
</label>
7979
</div>
@@ -86,7 +86,7 @@ <h6 class="d-inline mb-0 ml-2">{{ .title | markdownify }}</h6>
8686
<!-- upload zone -->
8787
<label style="font-weight:500;" class="file-upload" for="{{.identifier}}">
8888
<input type="{{.type}}" onchange="displayFile({{.identifier}})" class="form-control" id="{{.identifier}}"
89-
value="{{.value}}" {{if .required}} required {{end}} name="{{.label}}" placeholder="{{.placeholder}}" />
89+
value="{{.value}}" {{if .required}} required {{end}} name="{{.title}}" placeholder="{{.placeholder}}" accept="{{.file_type}}" />
9090
<div style="display:grid; place-items:center;">
9191
<i class="fas fa-upload my-2" style="font-size:24px;"></i>
9292
<p id="upload-text" style="color:#005AA7;">{{.file_upload_text}}</p>
@@ -132,8 +132,8 @@ <h6 class="d-inline ml-1">{{.title}}</h6>
132132
<!-- text boxes -->
133133
{{ else }}
134134
<div class="col-md col-sm-12">
135-
<input type="{{.type}}" class="form-control" id="{{.identifier}}" accept="{{.file_type}}" value="{{.value}}" {{if
136-
.required}} required {{end}} name="{{.label}}" placeholder="{{.placeholder}}" />
135+
<input type="{{.type}}" class="form-control" id="{{.identifier}}" value="{{.value}}" {{if
136+
.required}} required {{end}} name="{{.title}}" placeholder="{{.placeholder}}" />
137137
</div>
138138
{{ end }}
139139

tina/tina-lock.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)