
Hi,
I have an equipment booking app and I have a checkbox which the users have to tick in order to submit the form. The text label which includes the terms and conditions doesn’t show the whole terms and conditions so the user has to scroll on the label to view them all. I could alter the size of the label to show them all as default, but I was wondering is it possible to make the checkbox visible only once the label has been scrolled down to the bottom by the user to show all the terms and conditions?
Thanks in advance!
Here's how I would do this:
Create a flexible height gallery and make its Items property:
Table({Value: 1}, {Value: 2})
Next, insert a label into the gallery template and make its Visible property:
ThisItem.Value = 1
And make sure its AutoHeight property is set to true
Place your terms and conditions text within the label using conditional logic:
If(ThisItem.Value = 1,
"Here is the terms and conditions text....", // replace this with your T&C
"Please check this box to agree"
)
And adjust the size of the label and gallery so that the user will have to scroll down to be able to see the entire text.
Next, in the gallery template, insert your checkbox control and set its Visible property to:
ThisItem.Value = 2
The gallery should now show the T&C text in the first row and the checkbox in the second row, and nothing else. Once you adjust your gallery sizing you can force the user to scroll down at least a little bit to see the second row of the gallery.
Hope that helps,
Bryan