eliot1
2
Hi, in your case one solution is to use a custom state and some workflows.
- Create a custom state (e.g. “validationPayload”)
- On loading set state to RG list of products: format as text
- content to show per item: product’s unique id: false
- delimiter: |
- 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
- 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
- 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 