Community > Answers
205 views

Live Forms - Javascript Functionality

Hey All,

We are trying to use Javascript functions within the Javascript -> "On Form View > Evaluation" page action but need to know what level of Javascripting is supported. Are we allowed to use full functions within the code block for evaluation. in pseudo code, we are looking to evaluate if a check box is selected, pre-fill-in a texbox BUT if unchecked, we would want to clear the textbox.

example

function GenTemp() {
    var x = '[Status:]';
    if ('[Status:]' != '(0)') {
        [token] = (Math.floor(Math.random() * 10000000) + 1000000);
    } else {
        [token] = '';
    }
}

GenTemp(); 

 Thanks

Dave

D A D A
asked 01/19/2018 18:37
Add Comment
D A
replied 01/23/2018 16:39

Can someone from Team Mandeep let us know if this is possible or not. We've been experimenting and have had no luck so far. In addition, it would be great to have more in depth developer coding examples for the tools so we can see more of the advanced functionality on the full scope and power of the tools.

Thanks

Dave 

D A
replied 01/30/2018 15:24

Has anyone had any luck using the Javascript validations in a function format?

Team Mandeep, can someone at least chime in for feedback?

Thanks

Dave

Last Activity 01/30/2018 15:24

No answers found

Add an Answer