Jump to content

Search the Community

Showing results for tags 'hyperlink'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • Caspio Apps for Ukraine
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location


Interests

Found 5 results

  1. Hi guys! Just want to share this simple JS solution on how to display your desired hyperlink based on the value of your other field. In this solution, I'm using a Report DataPage and I would like to display the Google link when the Name field is equal to 'Jet' and the YouTube link if the Name field has other values. I just added an HTML block and input this code. First, I created 2 'a href' tags for the links and their ID as well. It is important to include the unique ID of your table in creating their IDs. Then, I added a simple if else statement JS to set the condition and result. <a id="youtube[@field:RID]" href="https://www.youtube.com">Youtube</a> <a id="google[@field:RID]" href="https://www.google.com">Google</a> <script> if("[@field:Name]" == "Jet") { document.getElementById("youtube[@field:RID]").style.display = "none"; } else { document.getElementById("google[@field:RID]").style.display = "none"; } </script> Here is a sample result:
  2. I have a DataPage deployed in Wix which deployed my DataPages as iFrame. I also have a hyperlink in my DataPage inserted in an HTML block but when I click this link, it just opens inside the iFrame and not in a new page. Is there any ways to fix this?
  3. Hello friends, I have a report data page which is basically a to do list. At the moment I use inline edit to tick the checkbox but it requires 3 clicks for each record. To speed things up I'd like a button as hyperlink which will set the appropriate Yes / No field of the record. Can this be done? I already know how to insert HTML blocks and links, but not what goes in the source code. Thanks and kind regards. Tobias
  4. In an html block on a Details datapage, I'm trying to show buttons with hyperlinks to social media pages using font awesome icons. The issue, though, is I need to show/hide these font awesome icons based on whether the datafield used for the url is null/blank or not. Basically, if the user has not entered a url link in the 'Facebook' field then I need to hide the Facebook font-awesome/hyperlink (because there is no url for Facebook for that record). I just want to show the social media links that have actual urls and hide those that don't. Here's the code to a couple of those hyperlinks (Facebook and LinkedIn- there are actually 6 in total but I didn't want to clutter this question). <div style="font-size:20px"><a href="[@field:myFacebookfieldname]" target="_blank"><i aria-hidden="true" class="fa fa-facebook-official"></i></a>&nbsp;&nbsp;<a href="[@field:myLinkedInfieldname]" target="_blank"><i aria-hidden="true" class="fa fa-linkedin-square"></i></a></div> For example, if [@field:myFacebookfieldname]=null then I need to hide (display:none) that hyperlink so it- the font awesome icon- doesn't show. I'm not a js expert so I hope someone here could help get this to work. Many thanks in advance. I was trying something like the below, to put the 'section1' attribute into the hyperlink above but that's not correct... <script> var v_fbook = parseFloat(document.getElementById("EditRecordmyFacebookfieldname").value); if(!isNaN(v_fbook)) { document.getElementById('section1').style.display = "block"; } else { document.getElementById('section1').style.display = "none"; } </script>
  5. Looking for a way to recognize any 'http...' string in a text field and make it hyperlink. The purpose is to enable viewers to click on that link, rather than re-pasting the string into a browser. Thanks...
×
×
  • Create New...