Jump to content

Chrille

Members
  • Content Count

    2
  • Joined

  • Last visited

About Chrille

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Vitalikssssss That helped a lot, got it working now. Thanks! Regards, Christofer
  2. Hi! I am trying to change the value of a field in a detailspage on update if another field is not empty. I have this working in a submission form with this code: <script type="text/javascript"> function function1() { var v3 = '<img src="http://image_url" alt="YES"'; var v2 = document.getElementById("InsertRecordKontaktad").value; if (v2 !="") { document.getElementById("InsertRecordRingt").value = v3; } } document.getElementById("caspioform").onsubmit=function1; I have tried the same code in the detailspage but it will not work. I have also tried this code: <script type="text/javascript"> document.addEventListener('BeforeFormSubmit', function (event) { var v3 = '<img src="http://image_url" alt="YES"'; var v2 = document.getElementById("InsertRecordKontaktad").value; if (v2 !="") { document.getElementById("InsertRecordRingt").value = v3; }}); </script> This code will also not work. Does anyone have a idea? Kind regards/ Christofer
×
×
  • Create New...