Skip to main content
Question

Identify current url, OR, view / add / edit of a form.

  • Dec 5, 2014 5:35 PM UTC
  • 0 replies
  • 120 views

This is probably really easy - but I am stumped.

I would like to display a piece of bright colorful text on my form and have it be conditional depending on whether the user is adding a record, viewing a record, or editing a record.

Identifying that the user is adding a record is not an issue, a record id does not exist until after created.

I can not figure out how to tell my formula text field that the user is either in view or edit while on the form. If I could get the exact url from the browser of the user, I could use the "dr" or "er" as my indicator for my formula.

If anyone could share any ideas - I think I might be stuck within a box and need some other brains to have a thunk at it.

Thank you!
This topic has been closed for replies.

Use three fields.  Then set Form properties to show them respectively for View, Edit, Add.

  • Author
  • Observing
  • Dec 6, 2014 1:44 AM UTC
VERY SIMPLE!!! Thank you!!! HAHAHAHA!!!

:)

  • Author
  • Observing
  • Dec 6, 2014 1:49 AM UTC
Didnt mean to convert my comment to an answer... wasnt sure if I had marked your comment as answering my question... kinda confusing. thanks again!

It shows as 2 answers, but I think that you (but not me) has the ability to mark mine as the "Recommended answer".

  • Qrew Corporal
  • Mar 5, 2018 3:16 PM UTC
HI Guys, I am looking at the exact same problem, please can you share the code for the button and fields?

  • Qrew Corporal
  • Mar 5, 2018 3:18 PM UTC
Can you then also do an "if statement" in the URL field, to say "IF field=add, then use specific URL, of field=view, then use specific URL, otherwise use Edit URL"?