Can't quite disable a reaction column based on another reaction column

I can’t quite get this to work. I have a common use case of upvote and downvote and am using the built-in reactions column type. I’m trying to prevent a user from voting both options if they’ve selected one already.

I was using the “Disable if” function using: thisRow.Upvote.Contains(User()) but when I hit enter, it seems to only work once (disabling the other column) but once I keep testing it the disabling stops.

Am I doing this correctly?

1 Like

hi @buildinginla ,

What about this one:

I have put in the disable the check to the other reaction via

thisRow.Up.IsNotBlank() OR thisRow.Down.IsNotBlank()

Hope it helps, Christiaan

1 Like

HI @buildinginla I just noticed that this trick does not reset the values. So once you want to undo your up or down vote and to move to the alternative option, it is not gonna work, it remains (for whatever reason) inactive.

I have to go, maybe somebody else has a great idea about how to reset, but I am afraid you need a button to make it work (and you use the reaction icon in the button).

1 Like

hi @buildinginla , it made me think about this solution:

you can copy the doc and use the content to your advantage, cheers, Christiaan

1 Like

@buildinginla
Hello,
Here is my solution, I hope it will suit you and in my case it works well :slight_smile:
chrome_i3M36UjIUI



1 Like

bonsoir Thierry,

You use a button to reset and this works indeed.

well done, cheers, Christiaan

2 Likes

@Christiaan_Huizer ,

thank you :slight_smile:

1 Like

@Thierryvm,

an elegant solution
well done

max

1 Like

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