cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CDC Gigya - Custom error message gets overwrittem by default message

silvia_piccolo
Explorer
0 Kudos
684

Hi, I'm experiencing this problem. When I try to put a custom message on a boolean checkbox that I added on my lite and full registration screensets, my custom error message gets overwritten by the default error message 'This field is required'. This happens for all the locales I'm using, and the field is not required in the schema but just 'when visibile'. Did someone experienced the same problem?

View Entire Topic
shemma65
Advisor
Advisor
0 Kudos

Hi Silvia,

Can you share more details for your implementation.

I just tested the "customLang" functionality and its working on my local site.

for example:
gigya.accounts.showScreenSet({

screenSet: "Default-RegistrationLogin",

customLang: {

this_field_is_required: "Required"

}

});

divyani179
Newcomer
0 Kudos

Hi @Shem,

Do we have to put this code inside screenset js ?
What i want to try is custom error messages on my 'forgot password screen' using screenset js, how can i do that?

Oleh_Ilchyshyn1
Active Participant

Hi divyani179,

You can use Label element + Visible When to define a condition for your custom inline error.
Also, you can access the Label element and set a condition through the Javascript using onFieldChanged.

To imitate custom server error you should set a condition using onBeforeSubmit and return false in the case when your condition doesn't suit

Hope it helped.