Hello,

how I can change value (#form.wf_ahe_kontrolaZa_K.akceptacjaZarzaduKanclerzData#) in Tex Field if is empty or null. I'm a beginner user and I can't self resolved this problem.

Regards

5 Comments

  1. Hi there,

    The hash variable is used to pull values, not to set value. Maybe you can try something else or tell us on how you want to achieve.

    Hope this helps.

    Thanks.

    1. Hi, I would like to display hash value in TextField if hash value is set (ie. different from a "empty" and different from the "null"), but if the hash value is not set (ie. "empty" or "null") I want to display in TextField string "N / A"

      hashVariables.png

      1. Hi there,

        I don't know what would be the best way to do what you're asking but I may have a workaround for you. What you can do is, drop a Custom HTML field in your form and write a JavaScript to check if the hash variable is getting any value or not. Based on this condition, you could change the text of the textbox in question.

        You could try something like this:

        <script type="text/javascript">
        $(function(){
          if("#variable.status#"==""){
            $("#field1").val("N/A");
          }
        });
        </script>

        Hope this helps,

        Thanks,

        Ashutosh

        1. Perfect solution

          Thank you for your help