Discussions

 View Only
  • 1.  URL Button to show a form element in pop up window?

    Posted 01-06-2017 16:22
    Basically, this is just an aesthetic request.  How can I have a javascript window to pop up and show a specific field?  ie

    <button: Show name >

    Pop up window:
    George Washington


  • 2.  RE: URL Button to show a form element in pop up window?

    Posted 01-09-2017 04:41
    Yes, this can be done, but I'm sure you are looking to show more that just a name.  Do you have any more details of what you are trying to do?


  • 3.  RE: URL Button to show a form element in pop up window?

    Posted 01-09-2017 14:11
    Just a button that when pressed a small pop up appears with the information within that field shows up.  That was just an example.  

    Thanks


  • 4.  RE: URL Button to show a form element in pop up window?

    Posted 01-09-2017 15:07
    Tony,
    Here is a low tech solution which does not require javascript.

    Make a URL formula button set to open in a new window (there is a checkbox for this)
    URLRoot() & "db/" & dbid() & "?a=dr&dfid=10&rid=" & totext([Record ID#])

    This will not be a small pop up though, it will be a new tab and it will open up form ID# 10 which would be a new super mini form why just that field on it.

    if you like you can put this Text formula button with html enabled on the form to help the user easily close the Tab.  I'm not 100% sure it works on all Browsers, you would need to test.

    var text URL = "JavaScript:window.open('','_parent','');window.close();";
    var text Image = "<img src=https://images.quickbase.com/si/48/832-close.png>";

    "<a href=" & $URL & ">" & $Image & "</a>"


  • 5.  RE: URL Button to show a form element in pop up window?

    Posted 03-20-2017 05:07
    Great :)


  • 6.  RE: URL Button to show a form element in pop up window?

    Posted 01-09-2017 15:09
    Thanks.  I'll take a look and play around with it.


  • 7.  RE: URL Button to show a form element in pop up window?

    Posted 02-22-2017 02:52
    Mark, is there an option to open the pop up form in edit mode? And could this be shrunken window just big enough to show 2-3 fields?  


  • 8.  RE: URL Button to show a form element in pop up window?

    Posted 02-22-2017 13:27
    If you change the dr to er here URLRoot() & "db/" & dbid() & "?a=dr&dfid=10&rid=" & totext([Record ID#]). It will open in edit mode.

    Sorry , but I do not know how to make it open in a smaller popup box.

    I belive that I do have code for a big X so the use has something to big click in to close the new tab. I can look for that if you need it.


  • 9.  RE: URL Button to show a form element in pop up window?

    Posted 02-22-2017 20:21
    Thanks a lot. This works well.  


  • 10.  RE: URL Button to show a form element in pop up window?

    Posted 03-21-2017 03:06
    If you want to open a small pop-up window via an HTML text page, you'll want to use a combination on 

    onclick=\"var a=window.open('"&URLRoot().....

    and

    'newwindow', 'width=600,height=200');

    The URL would direct to your specific form, and the new window call would make it a pop-up, and then jsut set your size.


  • 11.  RE: URL Button to show a form element in pop up window?

    Posted 11-17-2017 16:31
    Matthew,

    I'm using a URL formula field to build a URL link to an external site.....I would like to create a Text formula field that uses the code you suggested to open my [URL formula field] into a pop-up window. Would you mind sharing with me what the code would be -- that I would need to use within my formula text field? thank you!


  • 12.  RE: URL Button to show a form element in pop up window?

    Posted 05-24-2017 22:43
    Matt, sorry took a while to thank you. Could you advise how to set it up, I mean, how to use the syntax you have kindly sent.