#Can't custom logic "reset" button in JSON form widget

1 messages · Page 1 of 1 (latest)

eager rain
#

Hi,
i want to custom logic "reset" to "cancel" but JSON form just support event onSubmit. Please help me !
Thanks a lot !

stoic shoalBOT
#

{
cancelForm: () => {
// Logic to reset form fields
// Example: Resetting a form named 'myForm'
myForm.reset();

// Additional logic, like navigating to another page
// navigateTo('HomePage');
}
}

  1. Bind the Button to the JS Function: Set the button's onClick property to call the cancelForm function:

{?{ JSObject1.cancelForm() }?}

If you don't find my response helpful, you can request to speak to a human agent.

eager rain
#

how to hidden submit button

stoic shoalBOT
#

{?{ false }?}

This will hide the button unconditionally. If you have a specific condition, replace false with your condition.

  1. Dynamic Visibility: If you want the button to be hidden based on a dynamic condition, you can use a JavaScript expression like:

{?{ someCondition }?}

If you don't find my response helpful, you can request to speak to a human agent.

eager rain
#

i want to speak a human agent

stoic shoalBOT
#

Someone from our team will reach out to you on this thread. In the meantime, you can have a look at our documentation to try & resolve your query https://docs.appsmith.com?utm=bot

Organizations build internal applications such as dashboards, database GUIs, admin panels, approval apps, customer support tools, etc. to help improve their business operations. Appsmith is an open-source developer tool that enables the rapid development of these applications. You can drag and drop pre-built widgets to build UI. Connect securely...