71
Views
6
Comments
Solved
[Reactive][Block] Form validation inside a Block
Application Type
Reactive

Hello everyone,

I have the following Reactive Block:

This block is simply a popup with a form inside of it.

The ConfirmButton has the Built-in Validation property set to Yes.

When I click on the ConfirmButton the following action is called:

The problem is that Form.Valid is always True, it seems like the input widgets inserted when using the block do not affect the Valid property of the form. 

How can this be fixed?

I have attached an OML as example.


Best Regards,
Raffaele Battipaglia

FormTest.oml
2026-04-23 05-29-20
Prince Kumar
Solution

Hello @Raffaele Battipaglia 

I have checked your OML and there are some changes you need to do with your code like scope of the input field should be define either inside the block or the complete form tag you have to define in the parent section.  

The input field is not validating because whatever the value you are inserting in the input field that is defined in parent placeholder which is out of the scope of the form.

Hope you understand my point.

Regards

Prince


2025-07-09 07-52-36
Raffaele Battipaglia

Unfortunately it seems the only solution is indeed to have the form external to the block, is kinda a let down that is not possible to populate a form inside a block using placeholders.

Thanks

2023-07-05 10-39-50
faizan ali

Hi Raffaele,

Set the is form default property to yes in the confirm button it should work i am attaching the screen shot for your reference.


hope it helps.

2025-07-09 07-52-36
Raffaele Battipaglia

Thanks,

I already tried it and the validation still doesn't fail.

UserImage.jpg
Md Mansur

Hi @Raffaele Battipaglia 

I have attached oml file so please go through this:


Thanks

Md Mansur

FormTestFinal.oml
2024-08-08 07-20-58
Tejas Mahale

Hey Raffaele , I have solved your issue and fixed it altogether. I have attached the oml file. Hope it helps and satisfies your doubt.


Thanks, 

Tejas

FormTest.oml
2026-04-23 05-29-20
Prince Kumar
Solution

Hello @Raffaele Battipaglia 

I have checked your OML and there are some changes you need to do with your code like scope of the input field should be define either inside the block or the complete form tag you have to define in the parent section.  

The input field is not validating because whatever the value you are inserting in the input field that is defined in parent placeholder which is out of the scope of the form.

Hope you understand my point.

Regards

Prince


2025-07-09 07-52-36
Raffaele Battipaglia

Unfortunately it seems the only solution is indeed to have the form external to the block, is kinda a let down that is not possible to populate a form inside a block using placeholders.

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.