validation message

Hi all,

I need to validate that in a texfield, the user on type characters, I mean (100k, 80k, ect), numbers with text values.

if the user enters 10k,20k like in textfield, I have show some validation message,How could I achieve this,

is there a special functions?

Can anyone help me please on priority?

  Discussion posts and replies are publicly visible

Parents Reply
  • No, If I use floating-point component still not working,The value is vanishing if I enter 10k instead of giving 10

    a!floatingPointField(
                    /*label:"Face Value"*/
                    value: rule!CR_FN_setDecimalValues(
                      value_dec: index(fv!item, "faceValue_dec", {}),
                      decPlace_int: 2
                    ),
                    saveInto: fv!item.faceValue_dec,
                    readOnly: local!releaseDeleteReadOnlyBool,
                    required: rule!CR_APP_FN_requiredConditionsForDocumentaionUnit(
                      crAppSelectedItem_cdt: fv!item,
                      role_txt: ri!role_txt,
                      isRequired_bool: ri!isSecurityCollateralReq_bool
                    ),
                    validations:{rule!CR_FN_setValueGreaterThanZeroValidation(value_dec: fv!item.faceValue_dec),
                    if(a!isNullOrEmpty(stripwith(local!faceValue,"0123456789")),"","Enter a valid"),
                    }
                  ),

Children