Discussions

 View Only
  • 1.  text(formula) to load php page

    Posted 02-14-2017 06:48
    Hi .. i have text(formula) field.. here i want to load a php page on onClick function. and need to pass record id to that page also..how can i write the formula for that ?


  • 2.  RE: text(formula) to load php page

    Posted 02-14-2017 08:47
    Instead of having a Formula text field to make it as a hyperlink to another external linked page, you can create a Formula URL field with the "Display as a button" unchecked.




    Output with F12 Inspect Element set to the hyperlink displayed:



    Regards,
    Dinesh V


  • 3.  RE: text(formula) to load php page

    Posted 02-14-2017 09:36
    Thanks Dinesh. Let me try this


  • 4.  RE: text(formula) to load php page

    Posted 05-10-2017 18:14
    Hi Dinesh.  I am hijacking this thread;  I have a similar issue where I want to load an external PHP page and pass a field value into the URL as well.  The solution above is not working for me.  Also, is there any way to add this into an already existing "edit record' button?


  • 5.  RE: text(formula) to load php page

    Posted 02-14-2017 17:25
    To pass information to one of your code pages you can use a formula similar to this:

    href=\"javascript:window.location.href = 'https://yourdomain.quickbase.com/db/yourdbid?a=dbpage&pageID=5&parent="&[Record ID#]&"'\"

    Then you can receive and do what you'd like in your php page.


  • 6.  RE: text(formula) to load php page

    Posted 02-15-2017 08:55
    Thanks