Whenever you wish to display a value in a field based on certain values entered in other fields, and you desire to exhibit this on the UI in real-time without saving the record in objects, UI Fields employ the merge text functionality.
Merge Text: Merge text is a key feature of the noKodr application, enabling users to showcase field values on the UI. Depending on the field data type, users can perform mathematical operations . For instance, if you aim to display a calculated total price based on the quantity and unit price entered by the user on a sales order form, and you wish to dynamically display this on the UI without initially saving the record in the database, you can accomplish this using the UI fields of the noKodr application.
For better comprehension, consider the following example: Upon entering the first name and last name, if you desire to display the full name on the UI by concatenating these two fields without saving the record first to preview the appearance, you can utilize the UI field for this purpose.
Below are the steps on how to use the UI field in your noKodr layout
- Open the created layout.
- On the left-hand side, click on "Model."
- Create a new Model by clicking on "+".
- Select the desired object, for example, "Contacts," and create a single record model.
- On the left-hand side, click on "UI Fields."
- Click on "New."
- Provide a name for this field.
- Click on the Gear icon to provide the merge text. This merge text will display the value of the field which you will add in the merge text. For example, provide the First name & Last Name as merge text.
- Click on the source type and select "Model," as we need to obtain the first name and last name for concatenation
- Select the created model.
- Choose the field whose value you want to display, for example, "First Name."
- Click on "+" to add the merge text.
- Following similar steps, add the last name as well
- Click on "Save" and assign the created model to the form component.
- Save and run the layout to preview the applied changes.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article