Hi!
I am new to using the tool and I want to know how I can change the background or the letters of a text field to red in a form. When the text field has an incorrect value.
Where can I put this code, in the header, in the validations?
Example:
Discussion posts and replies are publicly visible
Hi Maria,
As Selvakumar mentioned you can not achieve that with the default text field validation, however you you can 'fake' it with a card layout.
Simply put a richTextField inside a card layout, and you'll be able to customise the colours.
a!cardLayout( style: "#e74c3c", contents: a!richTextDisplayField( align: "CENTER", value: "This is some text" ) )
Hope that helps
Acacio B
Thank you very much, Acacio
Check the card layout. The code creates the following image
I put it in the text field validation but it doesn't work.
if (isnull(ri!codigo_cliente),
a!cardLayout(
contents: a!richTextDisplayField(
value: "Debe ingresar el codigo del cliente",
align: "LEFT"
),
style: "#e74c3c"
), null)
Hey Maria,
You should not add the cardlayout in the validation of the textfield, you can leave the validation of the text field triggers but without message, than add the cardlayout as a new component below the text field, you can add the same condition in the show when of the cardlayout so it will only be displayed when the date is missing.
Regards,
I will apply your suggestion !!!