Forms - how to limit "add another Button" to be appeared only if count of rows <5

i 'm using form activity and i need to set a maximum number for rows in the datagrid and if the user exceed these numbers , “Add Another” Button should disappear

can any one help me to solve this issue ?

Note :There is an option called conditional Add Button but i don’t know what shall i write in this field


@sangL - Could you help here? :slight_smile: