Hello

I'm trying to mark a boolean as required, but that option doesn't appear in the settings.

Does anyone know how I can mark the checkbox as required?

Fig. 1 Set up a Checkbox field

 

Thank you. 

 

Like 0

Like

2 comments

Making a checkbox required would only mean it can be checked (since there's no difference between unchecked and not filled in). Alternative approach is to use a lookup with Yes/No values (since then there is also a not filled in)

Hello Ryan Farley,

What happens is that I have a set of questions with three answer options each, and for each question, only one option needs to be filled out. I have a business rule that marks the boxes as required, but when one of them is selected, it disables the other two and makes them optional. The problem is that once you select a box and uncheck it, the required  disappears, allowing you to save with the three options blank. That's why I want to make the checkboxes required from the configuration.

 

And the reason for the checkboxes is that I require the checkmarks to appear in the Word report.

 

 

 

Show all comments

Hi team,



I created a multi select lookup page for a detail in freedomUI using "crt.OpenLookupPageRequest" functionality. I wanted to either remove already selected records in the popup window or show them as checked if they are added into the detail. 

Source for multiselect page : https://customerfx.com/article/invoking-a-multi-select-lookup-dialog-on-a-creatio-freedom-ui-page/

Can anyone help me with this issue?



Expected functionality:





Thanks in advance

Goparna Nasina

Like 1

Like

1 comments

Hello!

You can use the filtersConfig parameter to filter records, as mentioned in the article.

Or you can use the option selectionState to predefine selected rows, which will be pre-selected when the lookup page is opened.

 

Example of selected records:

{
	type: "crt.OpenLookupPageRequest",
	...
	selectionState: {
		type: 'specific',
		selected: [
			'00000000-0000-0000-0000-000000000000',
			'11111111-1111-1111-1111-111111111111',
		]
	}
}

 

An example of pre-filtering records:

{
	type: "crt.OpenLookupPageRequest",
	...
	filtersConfig: {
		filterAttributes: [
			{
				name: 'MyFilter',
				loadOnChange: false
			}
		],
		attributesConfig: {
			MyFilter: {
				value: {
					"items": {
						"29e16d42-36f1-4e04-9029-4321cbb2494d": {
							"filterType": 1,
							"comparisonType": 11,
							"isEnabled": true,
							"trimDateTimeParameterToDate": false,
							"leftExpression": {
								"expressionType": 0,
								"columnPath": "Name"
							},
							"isAggregative": false,
							"dataValueType": 1,
							"rightExpression": {
								"expressionType": 2,
								"parameter": {
									"dataValueType": 1,
									"value": "Super"
								}
							}
						}
					},
					"logicalOperation": 0,
					"isEnabled": true,
					"filterType": 6,
					"rootSchemaName": "Contact"
				}
			}
		}
	}
}

 

Show all comments

I have a custom section that i've added to the mobile app.

This section record module has a check box.

When i "click" the checkbox, the record is automatically updated with the value of the checkbox (in the backend).

I need to update other fields on the record page, jest before it sends the update to the server.. basically what i need is to "catch" the "onClick / OnTouch" of the checkbox field -> update other field based on the checkBox field value -> (continue)send the update to the server..

 

Any Idea ? 

Thanks,

Eran.

Like 0

Like

1 comments

Hello,

The best way of doing your task would be to create a custom mobile business rule on your checkbox field with the event Terrasoft.BusinessRuleEvents.ValueChanged.

You can find more about the business rules in this article.

Show all comments

Hi,

 

I need to place a checkbox in the center of a grid cell. I have tried with a text label and I could justified it by adding the following code to the diff property of the attribute:



"styles": {

     "labelStyle": {

          "textAlign": "center"

     }

}

 

The label finally looked like this:

However, I did not find a way to center a checkbox field into the grid:

I hope you can offer me a solution. Thank you in advance!

Like 0

Like

1 comments

Hello,

As a suggestion, you may modify the diff part of these elements, so that they will be in the same container.

After that, you should apply a needed style to both elements.

In this article, you can find an example of how to center different elements.

Show all comments

Hi, I've got a page holding two new checkboxes. If the first checkbox (let's say "A") is marked, the second (let's call it "B") has to be unmarked and the other way around. I set the condition in the rules tab, in the page wizard, and each time I clicked on one of the boxes, the second became unavailable as it was projected. However, clicking on the labels of those boxes allowed for marking both of them! I thought I made a mistake and removed the condition.

Having known that both checkboxes are defined in diff array, I declared two schema attributes controlling if they are enabled/disabled. I also glued to the definition of checkboxes event-handlers in this way that each checkbox has its own click event-handler. Event handlers are defined in the section for methods.

Each event handler is responsible for controlling the state of the second checkbox if the first is marked/unmarked. And this time, it also works like a charm, but only when I click on checkboxes. Again when I click on labels of checkboxes, it's possible to mark both checkboxes at the same time. Moreover, it's impossible to handle click-events from these labels.

If it were "normal" js or ts I would handle that easily. Here, I'm running out of ideas. Could you advise me on how to achieve control on those labels, as well (to be precise, I need to have responsive labels to improve user experience)? What I've done wrong so far?

Like 0

Like

1 comments

Dear Duffy,

 

Thank you for submitting your question!

 

Could you please elaborate more on your question and possibly provide some screenshots?

 

Thank you!

 

Regards,

 

Danyil

Show all comments

Hi,

I need to show selection checkbox for each record onload of Customers list view (screenshot). Currently checkboxes are showing only after clicking on Actions > Select multiple records

Any help will be highly appreciable.

 

Regards

Like 0

Like

2 comments

Hi Muhammad,



You should call method setMultiSelect in the section on the init function:



 

define("ContactSectionV2", ["css!UsrContactSectionV2CSS"], function() {
	return {
		entitySchemaName: "Contact",
		attributes: {},
		details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
		diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/,
		methods: {
			init: function() {
				this.setMultiSelect();
				this.callParent(arguments);
			}
		}
	};
});

 

Dmytro Smishchenko,

Thank you for suggestion, I checked its working but there is a issue.

Issue: when I click on record the form is appeared, then I clicked on "Close" button and return to listview then checkboxes are not showing.

Show all comments