Skip to main content
Question

Conditional Button

  • Aug 8, 2020 3:15 PM UTC
  • 0 replies
  • 90 views

I have a button I've created for use in my forms that saves the current record/changes and then exits to the dashboard.

My question is, can I make this button's destination conditional in the sense that I'd like it to return to the dashboard specific to a user's role.  For example my dashboard as Admin may be different than that of a Participant.

Here is my current button code:
"<a style=\"width:310px; text-align: center; background-color: #0274be; color: #fff; padding: 10px; text-decoration: none; font-weight: bold; border-radius: 4px; margin-left: -50px; text-transform: uppercase; \" onclick='DoSaveAdd()' href='https://MY ADMIN DASHBOARD URL'>Save Changes & Exit</a>"


//Saves changes and exits to the dashboard​


Thanks in advance for any insights.

------------------------------
Chris Hesenflow
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+24
The url below will go to the home page of the app, which then be automatically how the users Role is set.  Does that work for you?

urlroot() & "db/" & appid()


------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------