# Swipe

**URL:** <https://community.glideapps.com/t/swipe/34623>\
**Category:** Ask for Help\
**Created:** [November 16, 2021, 8:29pm UTC](https://community.glideapps.com/t/swipe/34623 "2021-11-16T20:29:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 16, 2021, 8:29pm UTC](https://community.glideapps.com/t/swipe/34623/1 "2021-11-16T20:29:04Z")

</div>

Good afternoon. Probably the answer to my question is present somewhere on the forum, but I could not find it.

How does swipe work? By default, it moves to the next line, regardless of whether I used right or left. There were probably reasons to do this. But how to make it work according to logic - if to the right, then the next, if to the left, then the previous?

It seems to be somehow necessary to use incrementing? I have no ideas.

Initially, I wanted to use cards and left-right buttons, but I also could not figure out (for a lot of time) how this could be done.

Please help with these questions.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 16, 2021, 8:38pm UTC](https://community.glideapps.com/t/swipe/34623/2 "2021-11-16T20:38:52Z")

</div>

Hola @maro

Check the swipe actions. You could increment or decrement to make it go to the next or the previous row.

> **[Swipe Layout](https://docs.glideapps.com/all/reference/design-and-structure/layouts/swipe-layout)**

---

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 17, 2021, 12:56pm UTC](https://community.glideapps.com/t/swipe/34623/3 "2021-11-17T12:56:29Z")

</div>

Hello. This post talks about setting a “last swipe” to make this work somehow. Yes, I am using that. But that doesn’t solve it to make the swipe to the left change to the previous cell. As before, both left and right works as moving to the next cell in the same way.

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 17, 2021, 1:46pm UTC](https://community.glideapps.com/t/swipe/34623/4 "2021-11-17T13:46:29Z")

</div>

Take a look at this: [https://stormy-celery-4985.glideapp.io/](https://stormy-celery-4985.glideapp.io/)

It may give you an idea.

---

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 17, 2021, 5:17pm UTC](https://community.glideapps.com/t/swipe/34623/5 "2021-11-17T17:17:39Z")

</div>

oh, i see its working for u, but cant add ur app cuz of sharing options

---

<div class="post-metadata">

**Author:** ![MIKAHEL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mikahel/32/25039_2.png) [@MIKAHEL](https://community.glideapps.com/u/MIKAHEL)\
**Post date:** [November 17, 2021, 5:48pm UTC](https://community.glideapps.com/t/swipe/34623/6 "2021-11-17T17:48:46Z")

</div>

In a previous app of mine I used a sort of index to make it work as I wish.

The SWIPE date work in the way to follow the most recent date, but if you add a kind of Index, then the swipe will be forced to follow your instructions:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/d/cde0b10aa100bd9940c12300809c3689909a7014.png)

Practically what I did ( i try to remeber it, because unfortunately in this project some changes have been lost… 😡) was to give instruction to what is the record to read from the next swipe.

Ive created a column SWIPEID with the name STEP1, 2,3,…  
then for each step I wrote what comes next and what before (for instance the steps 2,3,4 have the same step backward, they go to 1).  
so what later I did is to create a self RelationColumn where when you swipe right you pass the information “STEP”&“1” (I mean a template column that contain the word STEP plus the number of the next SWIPE to go), then the relation column is actually ignoring the SWIPE date and loading the record I need.  
Probably I could make it easier without using the template, but anyway it’s working pretty well.

Hope is clear

---

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 21, 2021, 3:20pm UTC](https://community.glideapps.com/t/swipe/34623/7 "2021-11-21T15:20:37Z")

</div>

I didn’t manage to do it, starting from the point ““ STEP ”&“ 1 ”” ☹  
Why is it all so difficult? I do a bit of python programming and even put a dedicated server on linux recently. And this is all much simpler than all the settings on the glide :))

---

<div class="post-metadata">

**Author:** ![SantiagoPerez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/santiagoperez/32/16807_2.png) [@SantiagoPerez](https://community.glideapps.com/u/SantiagoPerez)\
**Post date:** [November 21, 2021, 3:24pm UTC](https://community.glideapps.com/t/swipe/34623/8 "2021-11-21T15:24:43Z")

</div>

Take a look a this thread. It will give a starting point.

> [@Paging and navigation using increment action](https://community.glideapps.com/t/paging-and-navigation-using-increment-action/10520):
>
> With the recently launched increment action, navigation between records becomes much simpler which previously required setting up plenty of relations to move around. How to do it?

---

<div class="post-metadata">

**Author:** ![MIKAHEL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mikahel/32/25039_2.png) [@MIKAHEL](https://community.glideapps.com/u/MIKAHEL)\
**Post date:** [November 22, 2021, 3:38am UTC](https://community.glideapps.com/t/swipe/34623/9 "2021-11-22T03:38:44Z")

</div>

I’ve just made a showcase video where I explain how to do in a static way.  
you can find it [here](https://community.glideapps.com/t/static-swipe-on-glide-by-request/34887)

to answer your question, with Glide you have a bit to change your mentality, since it is a nocode environment, so you have to build up the code through the tables also or especially.  
I think once you have get this, will be easy for you

Asta luego amigo!

---

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 24, 2021, 10:58pm UTC](https://community.glideapps.com/t/swipe/34623/10 "2021-11-24T22:58:52Z")

</div>

ty! will try that

---

<div class="post-metadata">

**Author:** ![maro](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@maro](https://community.glideapps.com/u/maro)\
**Post date:** [November 24, 2021, 11:02pm UTC](https://community.glideapps.com/t/swipe/34623/11 "2021-11-24T23:02:33Z")

</div>

Thank u so much! It finally worked for me!  
How do you think it is realistic with this method to add a checkbox True and False, the position of which will affect whether the line will be shown or skipped? I have a feeling that this will break all the logic 🙂

---

<div class="post-metadata">

**Author:** ![MIKAHEL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mikahel/32/25039_2.png) [@MIKAHEL](https://community.glideapps.com/u/MIKAHEL)\
**Post date:** [November 25, 2021, 12:34am UTC](https://community.glideapps.com/t/swipe/34623/12 "2021-11-25T00:34:49Z")

</div>

If you mean that the user may skip, then better it is to introduce a skip button similarly to the top button I’ve introduced, but if you want skip it forever (all the swipes) then you should implement it at the map level, so in case the user put the skip check “do not show it anymore”, next time he will find this already validated and the map will not be shown. if you mean out of the control from the user than this will break the logic I’ve implemented, you should review it.

Probably with line you meant to skip a swipe page. Then in this case you have to put the Next and Previous page sequence into an IfThenElse column, where perhaps if the skip is on then the number Next swipe will be added by 1 in case of previous will be added by -1.  
Example

```auto
Swipe. next prev ifnext ifprev skip
    1. 2. 0. 3. -1. On
. 2. 3. 1. 4. 0. On

```

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 27, 2021, 5:22pm UTC](https://community.glideapps.com/t/swipe/34623/13 "2021-11-27T17:22:10Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
