Add constraint when deleting the last repat group

Hi
I have a form with a repeat group. it should be at least one.
Seems it is impossible to prevent deleting all repeat group. is it a way to
fire an exeption when the last repeat group is deleted.

i tried to add a calculate field count(repeatednode) with constraint if
equal 0. but didnt works.

thanks for help

i figure out. I adapt Yaw solution
https://groups.google.com/forum/#!msg/opendatakit/VGq9VNHuZxQ/jR0uiAlnBAAJ

example joined

check_repeat.xml (1.46 KB)

··· Le jeudi 23 mars 2017 16:37:16 UTC+1, mk.gue...@hotmail.com a écrit : > > Hi > I have a form with a repeat group. it should be at least one. > Seems it is impossible to prevent deleting all repeat group. is it a way > to fire an exeption when the last repeat group is deleted. > > i tried to add a calculate field count(repeatednode) with constraint if > equal 0. but didnt works. > > thanks for help >

the exel file

check_repeat.xlsx (10.1 KB)

··· Le jeudi 23 mars 2017 16:37:16 UTC+1, mk.gue...@hotmail.com a écrit : > > Hi > I have a form with a repeat group. it should be at least one. > Seems it is impossible to prevent deleting all repeat group. is it a way > to fire an exeption when the last repeat group is deleted. > > i tried to add a calculate field count(repeatednode) with constraint if > equal 0. but didnt works. > > thanks for help >