Trying to build a URL using info from an app item

Comments

4 comments

  • Rainer Grabowski

    Hi Scott,

    you can encode the url:

    encodeURI("http://ecorp.azcc.gov/Search/SearchBar?term=" + @FIELD)

    (attention please: it's encodeURI, not encodeURL).
    or:

    ("http://ecorp.azcc.gov/Search/SearchBar?term=" + @FIELD).replace(/ /g,"+")

    Rainer

    0
    Comment actions Permalink
  • Scott Anderson

    Thanks Rainer!  The second one seemed to work.  The first one the Podio Calc field didn't seem to like.  

    One follow up question.  Is there a way to have the link appear as "Research Now" versus an ugly URL?  Thank you again Rainer.  You are indispensable!  

    0
    Comment actions Permalink
  • Rainer Grabowski

    Hi Scott,

     "The first one the Podio Calc field didn't seem to like."  - That's strange. Which error notification is shown?

    This way you get a "nice" link:

    var url = ("http://ecorp.azcc.gov/Search/SearchBar?term=" + @FIELD).replace(/ /g,"+");
    "[Research Now](" + url + ")"

    Rainer

    0
    Comment actions Permalink
  • Scott Anderson

    The first URL calc you gave me is now working..  Come to think of it now, when I tried it a few days back Podio was having serious calculation delays that day.  Like I said - seems to be working fine now when I just tested it again.  

    Thanks too for the 'Nice URL' calc.  You are a real help Rainer!  Thanks so much.
    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk