Jump to content

Search the Community

Showing results for tags 'scripts'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • 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 2 results

  1. Hello. I have entered the following script and on the 3rd data field, the value doesn't show! Also, would like to hide any of the fields if no value with script. Any help is appreciated... <span style="color: #A1A1A1; font-size: 12px; font-family: Arial, sans-serif; font-style: normal; font-weight: normal;">21+</span> <span id="icon[@field:age]"></span> <script> if ("[@field:age]" == "No"){ document.getElementById('icon[@field:age]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>"; } else if ("[@field:age]" == "Yes"){ document.getElementById('icon[@field:age]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>"; } </script> <span style="color: #A1A1A1; font-size: 12px; font-family: Arial, sans-serif; font-style: normal; font-weight: normal;">Tournaments</span> <span id="icon[@field:tourneys]"></span> <script> if ("[@field:tourneys]" == "No"){ document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>"; } else if ("[@field:tourneys]" == "Yes"){ document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>"; } </script> <span style="color: #A1A1A1; font-size: 12px; font-family: Arial, sans-serif; font-style: normal; font-weight: normal;">Tournaments</span> <span id="icon[@field:tourneys]"></span> <script> if ("[@field:tourneys]" == "No"){ document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://someapp.com/nk/icons/yellowflag.png'/>"; } else if ("[@field:tourneys]" == "Yes"){ document.getElementById('icon[@field:tourneys]').innerHTML="<img width='15px' src='http://assets.goplaypool.com/files/theme/appcas/check_01.png'/>"; } </script>
  2. I have two scripts I'd like to run on the same Submission form. The first one (Concatenate) combines several fields. This script has worked fine up until I added the second script. The second script needs to look for a value in the Application Type field and if the value is "Partial Application" then it changes a field to "not required" if the value is "full application" then it changes the field "Incomplete". Once I added the second script, neither of them work. Could someone help me out with how this should work? <SCRIPT LANGUAGE="JavaScript"> function concatenate() { var position1 = document.getElementById("InsertRecordCampaignYear").value = "2017 CFC"; var position2 = document.getElementById("InsertRecordFedAcronym").value = "[@authfield:CharityDetail_Fed_Acronym]"; var position3 = document.getElementById("InsertRecordEIN").value = "[@authfield:CharityDetail_EIN]"; var allpositions = position1 + " " + position2 + " " + "-" + " " + position3; document.getElementById("InsertRecordCampaignName_EIN").value = allpositions; { {document.getElementById("caspioform").onsubmit=concatenate; } document.getElementById("caspioform").onsubmit = function(){ if (document.getElementById("InsertRecordApplicationType]").value == "Partial Application"){ document.getElementById("InsertRecordTask_DescriptionofServices").value = "Not Required"; } else { document.getElementById("InsertRecordTask_DescriptionofServices").value = "Incomplete"; } } </SCRIPT>
×
×
  • Create New...