Skip to content

Commit

Permalink
Fixed wizard submit button (#1886)
Browse files Browse the repository at this point in the history
* submit button showing but disabled on form instraction view of designer

* added button settings to hide the wizard form submit button
  • Loading branch information
shuhaib-aot authored Feb 7, 2024
1 parent fd9fc5c commit e5b6e59
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions forms-flow-web/src/components/Form/Item/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ const Preview = ({handleNext, hideComponents, activeStep}) => {
setNewpublishClicked(false);
});
};



const gotoEdit = () =>{
Expand Down Expand Up @@ -225,7 +224,14 @@ const Preview = ({handleNext, hideComponents, activeStep}) => {
<Form
form={form}
hideComponents={hideComponents}
options={{ disabled: { submit: true }, language: lang, i18n: formio_resourceBundles }}
options={{ disabled: { submit: true },
buttonSettings: {
showSubmit: false
},
disableAlerts: true,
noAlerts: true,
language: lang, i18n: formio_resourceBundles }}

/>
</LoadingOverlay>
</div>
Expand Down

0 comments on commit e5b6e59

Please sign in to comment.