Skip to content

Commit

Permalink
Merge pull request #1468 from FromDoppler/fix-smartform-input-type
Browse files Browse the repository at this point in the history
Remove hard type on smartform
  • Loading branch information
ck-makingsense authored Dec 23, 2024
2 parents 29038d3 + 4dd231c commit 9d14830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/customJs/tools/smartforms/smartFormViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const SmartFormViewer: ViewerComponent<any> = ({ values }) => {
case 'number':
case 'date':
case 'hidden':
return `<input type= "text"' ${field.required ? 'required' : ''}
return `<input type= "${field.type}"' ${field.required ? 'required' : ''}
name="${field.name}"
id= "dp_sf_${field.name}"
placeholder="${field.placeholder_text}"
Expand Down

0 comments on commit 9d14830

Please sign in to comment.