You have to go through a four-step form wizard to enable this
Control, i.e., Type, Design, Action & Advance. Let’s explain
these steps below:
1st Step – Type
This is the first step of the “Button” control
form wizard. Here you are required to select the type of button:
Type
2nd Step – Design
Database Field Name (mandatory): Defines the name of the database field to which the component's data will be mapped and stored.
Button Name: The label or text displayed on a button, which indicates its function or purpose.
Select Style: Select option from the dropdown menu
Button Icon: Select option from the dropdown menu
Column Width: Specifies the width of a column in a layout or grid system, allowing control over how much space the column occupies relative to others.
Tooltip: A brief description or hint displayed when a user hovers over or focuses on an element, providing additional information.
3rd Step – Action
If “Button Type” is selected as “Submit”, then the following
actions should perform as follows:
API
Primary key: A unique identifier for each record in a database table, ensuring that no two rows have the same value in this field.
Create
Choose Data Source: Select data source from the following HTTP, Workflow, No SQL or RDBMS
HTTP
Data Connection: Defines the connection to the data source, such as a database or API.
Method (mandatory): Select method from the following GET, PUT, POST, PATCH, DELETE or POCO
API URL (mandatory): Specifies the endpoint URL for API requests.
Query Parameters: A set of parameters appended to the API URL to filter or customize the request.
Key: The name of the query parameter.
Value: The value assigned to the query parameter.
Query Variable: A variable that dynamically replaces the parameter's value.
Select Type: Defines the type or format of the query parameter.
Headers: A collection of key-value pairs sent with the API request.
Name: The name of the header parameter.
Value: The value of the header parameter.
Others: Additional settings for the API request.
Enable raw query: Allows the use of raw query strings for custom API calls.
Enable Encryption: Enables or disables the encryption of sensitive data to enhance security.
Response Attribute: Defines the attribute in the response that will be used for further processing or display.
Enable log: Allows logging of operations or activities for tracking and debugging purposes, often used to monitor system behavior or user interactions.
Description: Enter extra suggestions for user experience on this field
Update
Choose Data Source: Select data source from the following HTTP, Workflow, No SQL or RDBMS
HTTP
Data Connection: Defines the connection to the data source, such as a database or API.
Method (mandatory): Select method from the following GET, PUT, POST, PATCH, DELETE or POCO
API URL (mandatory): Specifies the endpoint URL for API requests.
Query Parameters: A set of parameters appended to the API URL to filter or customize the request.
Key: The name of the query parameter.
Value: The value assigned to the query parameter.
Query Variable: A variable that dynamically replaces the parameter's value.
Select Type: Defines the type or format of the query parameter.
Headers: A collection of key-value pairs sent with the API request.
Name: The name of the header parameter.
Value: The value of the header parameter.
Others: Additional settings for the API request.
Enable raw query: Allows the use of raw query strings for custom API calls.
Enable Encryption: Enables or disables the encryption of sensitive data to enhance security.
Response Attribute: Defines the attribute in the response that will be used for further processing or display.
Enable log: Allows logging of operations or activities for tracking and debugging purposes, often used to monitor system behavior or user interactions.
Description: Enter extra suggestions for user experience on this field
Form Behavior
Side bar close on submit: Automatically closes the sidebar upon successful form submission or action completion.
Side bar close on submit [On Error]: Closes the sidebar even if an error occurs during form submission or action processing.
Refresh component on submit: Reloads or updates the specified component upon successful form submission or action execution.
Select Refresh Form: Select option from the dropdown menu.
Message
Success Message Icon: Icon displayed alongside the success message to visually indicate success.
Success Message Title: Title of the success message shown after a successful operation.
Success Message Text: Additional details or text accompanying the success message.
Update Message Icon: Icon displayed alongside the update message to visually indicate an update action.
Update Message Title: Title of the message shown after a successful update.
Update Message Text: Additional details or text accompanying the update message.
Error Message Icon: Icon displayed alongside the error message to visually indicate an error.
Error Message Title: Title of the message shown after an operation failure.
Error Message Text: Additional details or text explaining the error or failure.
Submit on confirm: A feature requiring user confirmation before submitting a form or action.
Confirm Message: The message displayed to users in the confirmation dialog.
Confirm Button Text: The label or text on the confirm button in the confirmation dialog.
Cancel Button Text: The label or text on the cancel button in the confirmation dialog.
Confirm Button Type: Select option from the dropdown menu.
Cancel Button Type: Select option from the dropdown menu.
Hide Cancel Button: An option to hide the cancel button in the confirmation dialog.
Call additional API: Enables calling a secondary API after receiving confirmation from the user.
Field Name (If confirm message from response of first API): Specifies the field to extract the confirmation message from the response of the initial API call.
Confirm API URL: The endpoint URL of the additional API to be called upon confirmation.
Confirm API param: Parameters to be sent with the confirm API request.
Key: The name of the parameter.
Value: The value of the parameter.
From Data Model: Indicates if the parameter value should be fetched from the data model.
Is Page Variable: Indicates if the parameter is derived from a page-level variable.
Validation
Enable auto validate on submit: Automatically validates the form or input fields upon submission to ensure compliance with predefined rules.
Response field: Specifies the field in the response where the required data or value is located.
Validation message: The message displayed when a validation rule is not met, guiding the user to correct the input.
Reset Model From Response: Resets specific form fields or models based on values received in the API response.
Reset All Form Model: Clears all form fields and resets them to their initial state or default values.
Update Model Form: Select option from the dropdown menu
Others
Attach With Form Wizard: Links the current form with a form wizard for guided navigation through steps.
Form Wizard Move Next: Enables moving to the next step in the form wizard upon certain actions.
Form Wizard Attribute Name (mandatory): A required attribute name that identifies the form wizard step or behavior.
Form Wizard Component Form Id (mandatory): Select the identifier of the form component to link with the wizard from a dropdown menu.
Move Back: Allows navigation to the previous step in the form wizard.
Submit And Move Next: Submits the current step and transitions to the next step in the form wizard.
Generate PDF on submit: Creates a PDF document upon form submission.
Primary Key: A unique identifier used to associate data with the generated PDF.
Check PDF Onload: Automatically verifies or displays the PDF when it is generated.
PDF Response Model Key: Specifies the response key where the PDF details are stored.
Select PDF Form Name: SSelects the PDF form template to use from a dropdown menu.
Generate and open PDF: Generates the PDF and immediately opens it for viewing.
Upload Word Template: Allows uploading a Word document template to be converted into a PDF.
If “Button Type” is selected as “Redirect”, then the following
actions should perform as follows:
Redirect URL: Specifies the target URL to which the user or process should be redirected.
Primary Key: A unique identifier used for data or node association in the redirection process.
Primary Node Text: The display text for the primary node in the redirection context.
Redirect Type: Select option from the dropdown menu. Determines the type of redirection, selected from available options in a dropdown menu.
Query String Params: Defines key-value pairs to be appended as query parameters in the redirect URL.
Key: The name of the query parameter.
Value: The value associated with the query parameter.
Is External URL: Specifies whether the redirect URL points to an external location.
Is Primary Node from response: Indicates if the primary node value is fetched from the API response.
Is External URL from API data: Indicates if the external URL is dynamically obtained from API data.
Dynamic Redirect URL: Enables dynamic generation of the redirect URL based on specific attributes.
Redirect URL Attribute: Specifies the attribute used to dynamically generate the redirect URL.
If “Button Type” is selected as “Sidebar/Popup”, then the
following actions should perform as follows:
Show in popup: Specifies whether the content should be displayed in a popup window.
Redirect URL: Specifies the target URL to which the user or process should be redirected.
Primary Key: A unique identifier used for data or node association in the redirection process.
Form Id: Select option from the dropdown menu. Specifies the form ID to be used in the context.
Bind Data on Initialization: Ensures that data is bound to the form or fields during initialization.
Disable Sidebar close: Prevents the sidebar from being closed by the user.
Sidebar close warning Title: Title of the warning displayed when attempting to close the sidebar.
Message Icon: Select option from the dropdown menu. Specifies the icon to be used in the message.
Sidebar close warning Message: The message displayed as a warning when the user tries to close the sidebar.
If “Button Type” is selected as “Print”, then the following
actions should perform as follows:
Print Container Key (mandatory): A required unique identifier for the print container, used to associate the print data.
Print Title: The title displayed on the printed output, typically summarizing the content or purpose of the document.
If “Button Type” is selected as “Digital Signature”, then the
following actions should perform as follows:
Submit on signature capture: If this button is set to “Yes,” you can perform the “Submit Button” actions described above.
Header Text: The text displayed as the header of the signature pad.
Confirm Button Text: The text displayed on the button used to confirm the signature.
Clear Button Text: The text displayed on the button used to clear the signature pad.
Pen Color: The color of the pen used for drawing the signature.
Background Color: The background color of the signature pad.
Height: The height of the signature pad.
Signature Background Image: An optional image displayed as the background of the signature pad.
Signature Background Image Type: Specifies whether the background image is provided as a base64 string or an image URL.
Mobile Only: Properties applicable only to mobile devices.
Auto Clear: Automatically clears the signature pad after saving.
Description Text: Displays descriptive text in the footer of the signature pad.
Button Text Color: The color of the text on the buttons in the signature pad.
Button Background Color: The background color of the buttons in the signature pad.
If “Button Type” is selected as “PDF Converter”, then the
following actions should perform as follows:
Primary Key: A unique identifier used to associate and retrieve the specific PDF data.
Check PDF Onload: Automatically loads and checks the PDF when the page or process initializes.
PDF Response Model Key: Specifies the key in the response model where the PDF data is located.
Select PDF Form Name: Select option from the dropdown menu. Specifies the name of the form template to be used for generating the PDF.
Generate and open PDF: Automatically generates the PDF and opens it for review or download.
Upload Word Template: Allows uploading a Word template that can be converted into a PDF.
4th Step – Advance
Design
Size: Select size from the following Small, Medium, or Large. Specifies the size of the element to fit different layouts or designs.
Bootstrap Column Class: Specifies a predefined Bootstrap CSS class to style and format the component, enabling quick customization and responsive design.
Custom Class: Specifies a user-defined CSS class to apply custom styles and formatting to the component.
Mobile Icon: Select option from the dropdown menu. Specifies the icon to be displayed for mobile devices.
Description: Enter extra suggestions for user experience on this field. Provides guidance or additional context for the user.
Style: Defines CSS styling to customize the appearance and layout of the component directly.
Placeholder: A placeholder text displayed in the field until a value is entered.
Advance
Enable Dirty Check: To make this function work, please enable Dirty Check from "Form > Setting > Validation". Tracks changes in the form and prompts the user before leaving without saving.
Dirty Check Options: Configurations for dirty check functionality.
Select Dirty Check Forms: Select option from the dropdown menu. Specifies which forms to apply the dirty check.
Dirty Check Fields: Select option from the dropdown menu. Determines which fields are monitored for changes.
Dirty Check Fields Type: Include or Omit. Specifies whether to include or exclude specific fields in the dirty check.
Enable Notification: Enables notifications for specific actions or events.
Created by field: Field to store information about the creator of the entry.
Updated by field: Field to store information about the last user who updated the entry.
GUID field name: Field to store a globally unique identifier for the entry.
Submit pinned items: Ensures that pinned items in the form are submitted along with other data.
Bind Button Label with Data Model: Dynamically updates the button label based on the data model.
Is file upload on submit: Enables file upload functionality during form submission.
Hard Delete Model keys on submit: Permanently deletes specified model keys upon submission.
Delete Model items after submit: Select option from the dropdown menu. Specifies which model items to delete after submission.
No Validation Check: Disables validation checks on the form.
Enable Validation On Click: Triggers validation checks when a specific button is clicked.
Delete API Cache: Clears cached data for the specified API.
URL: The endpoint of the API whose cache needs to be deleted.
Primary key: The unique identifier used for the cache entry.
Primary key value field: Specifies the field containing the primary key value.
Required: Ensures the field must have a value before submission.
Enable Access Control: Restricts access to specific fields or actions based on user roles or permissions.
Notification
Notification End Point (Optional): Defines the endpoint for sending notifications, if applicable.
Enable Notification on New Entry: Sends email notifications when a new entry is created.
Email Connection: Select option from the dropdown menu. Specifies the email server connection settings.
From: The email address from which the notification is sent.
Sender: Name of the sender displayed in the email.
Subject: Subject line of the notification email.
Receivers: Select option from the dropdown menu. Specifies the recipients of the notification.
Select Template: Select option from the dropdown menu. Specifies the email template to use.
Email Template: Content of the email message.
Attachments: Files to include with the email.
Enter Attachment Attribute Name: Select option from the dropdown menu. Specifies the attribute name for attachments.
Enable Notification on Update Data: Sends email notifications when data is updated.
Email Connection: Select option from the dropdown menu. Specifies the email server connection settings.
From: The email address from which the notification is sent.
Sender: Name of the sender displayed in the email.
Subject: Subject line of the notification email.
Receivers: Select option from the dropdown menu. Specifies the recipients of the notification.
Select Template: Select option from the dropdown menu. Specifies the email template to use.
Update Email Template: Content of the email message for updates.
Attachments: Files to include with the email.
Enter Attachment Attribute Name: Select option from the dropdown menu. Specifies the attribute name for attachments.
Application Notification: Sends application-level notifications for users.
Notification For: Select from the following: Web, Mobile, or Both. Specifies the target platform.
App Notification Type: Broadcast or Individual. Specifies whether the notification is sent to all users or specific individuals.
Individual: Configures notifications for individual users.
Notification User Name [Email]: Specifies the user's email address for notifications.
Notification Dynamic User Name [Model Key]: Specifies the model key to dynamically determine the user.
Notification Header: Header text for the notification. For dynamic values, use placeholders like {{UserId}}.
Notification Description: Description text for the notification. For dynamic values, use placeholders like {{UserId}}.
Notification Header For Update: Header text for update notifications.
Notification Description For Update: Description text for update notifications.
Mobile Notification Redirect Url: URL to redirect mobile users upon notification interaction.
Notification Redirect Url: URL to redirect web users upon notification interaction.
Dynamic Parameters: Key-value pairs for dynamic notification parameters.
Key: The parameter key name.
Value: The parameter value.
Select Type: Select option from the dropdown menu. Specifies the type of parameter.
Mobile
Button Style: Defines the style or theme of the button.
Button Active Background Color: Specifies the background color of the button when active.
Button Text Color: Sets the text color of the button in its normal state.
Button Active Text Color: Sets the text color of the button when active.
Button Size: Determines the size of the button (e.g., small, medium, large).
Border Radius: Defines the roundness of the button’s corners.
Align Self: Controls alignment of the button within its container.
Justify Content: Aligns the content inside the button.
Padding Left: Sets the left padding inside the button.
Padding Top: Sets the top padding inside the button.
Padding Right: Sets the right padding inside the button.
Padding Bottom: Sets the bottom padding inside the button.
Margin Left: Sets the left margin outside the button.
Margin Top: Sets the top margin outside the button.
Margin Right: Sets the right margin outside the button.
Margin Bottom: Sets the bottom margin outside the button.
Gap: Defines the spacing between elements within the button.
Icon Right?: Indicates whether an icon should be displayed on the right side of the button.
Read bar-code before action: Enables a barcode scanning feature before executing the button action.
Bar-code Mapping Field (mandatory): Specifies the field where the barcode data should be mapped.
Button Type Card: Converts the button to a card-like appearance with additional features.
Description: Provides extra guidance for improving user experience on this field.
Image Url: URL of the image to be displayed on the button card.
Image Height: Specifies the height of the image on the button card.
Click “Confirm” and “Button” control is
configured.