Skip to content

Commit 25103c0

Browse files
fix: encode url
1 parent 7e270d4 commit 25103c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/customJs/tools/smartforms/smartFormViewer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const SmartFormViewer: ViewerComponent<any> = ({ values }) => {
3838
}, '');
3939
};
4040

41+
const congratUrlEncode = encodeURI(values.congratUrl);
4142
const getCheboxList = (field: UnlayerField): string => {
4243
const labelStyle = `
4344
display: block; text-align: left; vertical-align: middle; color: rgb(68, 68, 68); font-size: 14px;
@@ -156,7 +157,7 @@ export const SmartFormViewer: ViewerComponent<any> = ({ values }) => {
156157
data-field-instance={values.display}
157158
data-target-id-list={values.list}
158159
data-action-on-finish={values.congratBehavior}
159-
data-action-on-finish-url={values.congratUrl}
160+
data-action-on-finish-url={congratUrlEncode}
160161
>
161162
<div color="#000">
162163
{fields.map((field) => (

0 commit comments

Comments
 (0)