Hi, in your case one solution is to use a custom state and some workflows.

  1. Create a custom state (e.g. “validationPayload”)
    • type: text
  2. On loading set state to RG list of products: format as text
    • content to show per item: product’s unique id: false
    • delimiter: |
  3. Create a workdflow when dropdown in RG is changed
    • when dropdown value > quantity available, set state to index validationPayload
    • new value: index’s validationPayload:find & replace
    • text to find: parent’s group unique id: true
    • replace by: parent’s group unique id: false
  4. Create a workdflow when dropdown in RG is changed
    • when dropdown value < or = quantity available, set state to index validationPayload
    • new value: index’s validationPayload:find & replace
    • text to find: parent’s group unique id: false
    • replace by: parent’s group unique id: true
  5. setup conditional on the pay button:
    • when index’s validationPayload contains “false”
    • this element is not clickable
    • change background color or do not display it as you wish

This should work. hope this help :slight_smile: