Skip to content

Commit

Permalink
Form builder: clickable slug field
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnobile committed Apr 26, 2022
1 parent 215f7f3 commit 1945806
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion form-builder/admin/forms/formForms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ export const FormForm = Component(
<>
<Section heading={locale['Content']}>
<TextField field="title" label={locale['Title']} />
<SlugField field="slug" label={locale['Url']} derivedFrom="title" unpersistedHardPrefix={(environment) => `${environment.getValue('WEB_URL')}/form/`} />
<SlugField
field="slug"
label={locale['Url']}
derivedFrom="title"
linkToExternalUrl
unpersistedHardPrefix={(environment) => `${environment.getValue('WEB_URL')}/form/`}
/>
<ContentField />
</Section>
<Section heading={locale['Fields']}>
Expand Down

0 comments on commit 1945806

Please sign in to comment.