You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we don't have a way to preview the published/saved forms' data without displaying it inside of the corresponding fields set as readonly. We need to add a way to display for example the content of a text field as pure text instead of a filled-in text field, or a URL as an actual hyperlink instead of an url field.
A way of implementing this would be to have alternative "preview" implementations of those fields in alternative fields/index.js and widgets/index.js and to pass those to the RJSF form in Form.jsx instead of the normal implementations when a isPreview or isPublished (tbd) property is present. For users we could either add and expose a new FormulePreviewForm to be used when they want to render the form in this fashion, or alternatively add some isPreview prop to be passed directly to FormuleForm (by default it should show the published version).
Would be needed at least for Text, TextArea, Url, RichEditor and Latex.
The text was updated successfully, but these errors were encountered:
Right now we don't have a way to preview the published/saved forms' data without displaying it inside of the corresponding fields set as readonly. We need to add a way to display for example the content of a text field as pure text instead of a filled-in text field, or a URL as an actual hyperlink instead of an url field.
A way of implementing this would be to have alternative "preview" implementations of those fields in alternative
fields/index.js
andwidgets/index.js
and to pass those to the RJSF form inForm.jsx
instead of the normal implementations when aisPreview
orisPublished
(tbd) property is present. For users we could either add and expose a newFormulePreviewForm
to be used when they want to render the form in this fashion, or alternatively add someisPreview
prop to be passed directly toFormuleForm
(by default it should show the published version).Would be needed at least for Text, TextArea, Url, RichEditor and Latex.
The text was updated successfully, but these errors were encountered: