make button clickable only once for logged in user

tyagi_amrit2701
Tera Contributor

Hi everyone I have a requirement that I have to make a button clickable only once in a portal for currently logged in user in a custom portal is there any method through which I can achieve the same?

6 REPLIES 6

Robbie
Kilo Patron
Kilo Patron

Hi @tyagi_amrit2701,

 

So the way I would go about achieving this would be to leverage a data point such as state (or any data point within the record data) which acts as a flag which we can use as a condition to display the button or not.

 

For a high level example to help explain, before the record is saved or submitted, the state maybe 'Draft'.  When the record is saved/submitted, the state *may* change. Therefore we could use this data point as a condition on the button (If that makes sense).

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

Brad59
Giga Guru

If they log out and back in, should they be able to click said button again? 

Hi @Brad59 

No they won't be able to click that button again after clicking once

Then yeah some sort of state field like Robbie said would do the trick.