14
Views
6
Comments
Solved
how to enable or disable button using captcha?
Question
Application Type
Reactive

Hello All,

I want to Enable / disable my "SHOW" Button widget when I tick to "I'm not a robot"  Google Captcha. I unable to do it. Please help me here


thanks

GoogleReCaptcha.oml

Solution

But the IsEnable , in this case, is a local variable and is never set. It has always the default value "False". 

I believe what you need to do is , in Event2 and in myEvent,  set In1 equal to Validate.IsValid.  

Like you can see in the image above. 

And then the event will carry that information to the screen. 

Hope this help you. 

Stay safe

Graça

Rank: #18712

can you pls send me the oml.

still it's not working for me

Rank: #18712

Yes it is working now...

Very Thanks !!!

Hi! 

I don't think you ever get variable IsEnable set to true, in the "Submit" action. 

Look at it. 

Graça

Rank: #18712

Yes I don't understand how to get it's value

Solution

But the IsEnable , in this case, is a local variable and is never set. It has always the default value "False". 

I believe what you need to do is , in Event2 and in myEvent,  set In1 equal to Validate.IsValid.  

Like you can see in the image above. 

And then the event will carry that information to the screen. 

Hope this help you. 

Stay safe

Graça

Rank: #18712

can you pls send me the oml.

still it's not working for me

Rank: #18712

Yes it is working now...

Very Thanks !!!

Are you sure the "Submit" action is called? 

Do you see the ReCaptcha screen? 

I never build an app with ReCaptcha, so many other things can be happening. 

Debug is not easy in mobile, so you can send a message from "Submit" just to see if it is being used, and also in "OnParametersChanged". You must understand what is the sequence in what things are done.  

.