
Announcements
Hi,
I need to change the item in display form or in the gallery every 3 sec like a slider.
could someone help me to achieve it?
Hi @Anonymous,
Could you please explain a bit for the item that you would like to change here?
If you mean the Datasource property of the form control, or the items property of the Gallery control, then I am afraid this is not available.
Check the following thread for reference.
auto generate app with multiple SharePoint lists
A workaround is to add Multiple form controls (or gallery control), each configured with the proper data source, or saying items, then set the Visible property based on the duration and the number of the items you would like to display.
For example, if the number of items is three, then we could configure the duration of hte timer control to:
3(items)*3(sec)*1000
Duration of the timer control should be 9000
And its Repeat and Autostart properties to true,
Then under the form control (Gallery control) Visible property:
Use the following formula for each form controls:
First:
If(And(RoundUp(Timer1.Value/1000, 0)<=3,RoundUp(Timer1.Value/1000,0)>0),true,false)
Second:
If(And(RoundUp(Timer1.Value/1000, 0)<=6,RoundUp(Timer1.Value/1000,0)>3),true,false)
Third:
If(RoundUp(Timer1.Value/1000,0)>6,true,false)
After configured, set the timer control Visible property to false.
Hope this is helpful.
Regards,
Michael