Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
#827709
Hi.

I need my Grid to unable the option of deleting a row if there is just one row left.

This Grid is filled with information from a previous form, and the point of this one is review that information, change it (if necessary), and send it to be approved. But makes no sense sending a form with an empty Grid.

The idea is not to send the form without any infromation (or rows at all) in the Grid.

Thanks.
#827714
Hi,
You can check the numberRowCount of your grid onsubmit of your form and dont allow submit if your rows is zero.
Also you can check rows of your grid onDeleteRow function of your grid and dont allow delete row if your rows is zero.

https://pmlearning.info
Thanks
Last edited by programerboy on Tue Apr 06, 2021 5:51 am, edited 1 time in total.
#827716
programerboy wrote:Hi,
You can check the numberRowCount of your grid onsubmit of your form and dont allow submit if your rows is zero.
Also you can check rows of your grid onDeleteRow function of your grid and dont allow delete row if your rows is zero.

https://www.youtube.com/channel/UCYiyz1y8Qf4EZjMXodwH1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
Hi.

I tried this second option but it didn't work. Could you show me how to do it?

Thanks.
#827740
programerboy wrote:Hi,
You can check this post:
https://forum.processmaker.com/viewtopic.php?p=827721#p825473

https://www.youtube.com/channel/UCYiyz1y8Qf4EZjMXodwH1iw/videos
https://www.linkedin.com/in/pmlearning/
Thanks
Hi.

Thank you, but I can't access the pmusers link whith the solution on that post. I don't know why, maybe the website is off.

Is there any other way for me to see the solution to this?

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]