Setting Feld Readonly in mobile application for Freedom UI checed

Hello

For mobile application I need to set Field in Account Page AS readonlny Permanently

 

I have found 2 solutions witch works in When Freedom UI checbox is unchecked

 

one of them: https://community.creatio.com/questions/how-make-fields-read-only-mobil…

the other is  addBusinessRule of type : Terrasoft.RuleTypes.Activation

 

but they don't work when Freedom UI checbox is checked :(

 

any solutions for setting fields Readonly for FREEDOM UI checked ?

Like 0

Like

5 comments
Best reply

Hello Tomasz,

 

The code you've used is using Ext.JS and is not working in Freedom UI.

 

In the latest application versions the business rules setup on the object level will also be applied to the page in the mobile app. Tested in 8.1.1 and the "Make elements read-only" rule is working properly:

The object should be published after adding such a rule and relogin performed in the app.

Hello Tomasz!

 

For Freedom UI, you may use readOnly property of the "Input" component, or the "Read-only input" component, according to this article: https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/mobile-development/customization/freedom-ui/customize-page/references/common-components#title-15089-5

 

Best regards,

Natalia

 

Hello Tomasz,

 

The code you've used is using Ext.JS and is not working in Freedom UI.

 

In the latest application versions the business rules setup on the object level will also be applied to the page in the mobile app. Tested in 8.1.1 and the "Make elements read-only" rule is working properly:

The object should be published after adding such a rule and relogin performed in the app.

thanks Oleg! it works for FREEDOM UI checked !

I have noticted that if filed vale is empty ( or null) control dissapears

any solution how make it still visibale even if its empty ???

Tomasz Sobkowicz,

 

This has something to do with the rules setup. Please double-check all the rules that are set for your control.

there are no other rules

Show all comments