Disable add item button in table layout.

Scenario:-

  1. In the UI, you add one table with some column.

  2. Maximum 5 rows of data will be allowed to add. After entering the 5th row. Add item button will be disabled automatically.

  3. If we delete some row, then Add item button will be enabled.

Could somebody help me with this requirement!?

@Abp69 ,Use LengthOfPagelist(.PagelistName) > 5 in the disable condition on the add button .

@uashok93 , Thanks for the reply.

Ahh if we give this condition, by default the button gets disabled in the table and it wont display anything while running the case.

@Abp69 If your condition is correctly given , this should not happen. Can you please provide a screenshot of the configured condition ?

@Abp69

create a when rule in the disable condition

in when rule select length of pagelist function compare with value

add another event refresh this section on add and delete links. It works.

@SatishS84 Thanks for the reply. Its working!!

@VTALUKDAR Thanks for the reply. It’s Working!