test text
Sno.  Function Description Example
1 getVal(id) //answer_q501//
var a=getVal('answer_q501');
msg(a);
     
2 setVal(id,value) //answer_q501//
setVal('answer_q501','Jay Ho');
     
3 isRequired(id) //answer_q501//
isRequired('answer_q501');
     
4 isNum(id) //answer_q501//
isNum('answer_q501');
     
5 isAlpha(id) //answer_q501//
isAlpha('answer_q501');
     
6 isAlphaNum(id) //answer_q501//
isAlphaNum('answer_q501');
     
7 isRange('a01',[1,2,3,'7-10']); //answer_q501//
//isRange('answer_q501',[1,2,3,'7-10']);
     
8 isFixed(id,value) //answer_q501//
isFixed('answer_q501','This is good');
       
9 doHide(start_id,end_id) includes start and end ids //answer_q502//
doHide(start_id,'') includes start and blank id var a=getVal('answer_q502');
if(a==2){
doHide('answer_q503','answer_q505');
}
       
10 doShow(start_id,end_id) includes start and end ids //answer_q502//
doShow(start_id,'') includes start and blank id var a=getVal('answer_q502');
if(a==2){
doShow('answer_q503','answer_q505');
}
     
11 msg(value) msg('txt to alert message');
       
12 doJumpForward(start_id,end_id) jump start to end id and hide between //answer_q502//
var a=getVal('answer_q502');
if(a==2){
doJumpForward('answer_q502','answer_q505');
}
     
13 openBox(id,ids_array,'Message') //answer_pbd3_00//
var res_arr=["answer_q510","answer_q511","answer_q512"];
openBox('answer_pbd3_00',res_arr,'Message');
     
14 dateDiff(start_date,end_date,key) //answer_q3//
var d1_dd=getVal('answer_dd_q1');
var d1_mm=getVal('answer_mm_q1');
var d1_yyyy=getVal('answer_yyyy_q1');
var d1_h=getVal('answer_h_q1');
var d1_m=getVal('answer_m_q1');
var d2_dd=getVal('answer_dd_q2');
var d2_mm=getVal('answer_mm_q2');
var d2_yyyy=getVal('answer_yyyy_q2');
var d2_h=getVal('answer_h_q2');
var d2_m=getVal('answer_m_q2');
var d1=d1_mm+'/'+d1_dd+'/'+d1_yyyy+' '+d1_h+':'+d1_m;
var d2=d2_mm+'/'+d2_dd+'/'+d2_yyyy+' '+d2_h+':'+d2_m;
dateDiff(d1,d2,'HOURS');
 
15 today(key) key=DD/MM/YYYY //answer_id01//
//msg(today('DD/MM/YYYY'));
 
16 now(key) key=HH:mm //answer_id01//
//msg(now('HH:mm'));
 
17 gps(key,id) key=ADDRESS,LATITUDE,LONGITUDE //answer_id01//
//gps('ADDRESS','answer_id01');
 
18 doColumnHide(id,Nos) Nos=0 for rest of all //answer_q02_04//
//var a=getVal('answer_q02_04');
//if(a==1){
//doColumnHide('answer_q02_04',6);
//}
 
19 doColumnShow(id,Nos) Nos=0 for rest of all //answer_q02_04//
//var a=getVal('answer_q02_04');
//if(a==2){
//doColumnShow('answer_q02_04',6);
//}
 
20 random(ids_array)   //answer_pbd3_00//
//var res_arr=["answer_q510","answer_q511","answer_q512"];
//random(res_arr);
 
 
21 getStates(id) //answer_q01//
//getStates('answer_q01');
 
22 getDistricts(id,state_id) //answer_q01//
//getDistricts('answer_q02','answer_q01');
 
23 skip(start_id,end_id) jump start to end id and hide between //answer_q502//
var a=getVal('answer_q502');
if(a==2){
skip('answer_q502','answer_q505');
}
 
24 endSurvey(start_id) to end the survey for finish //answer_pbd3_00//
//endSurvey('answer_pbd3_00');
 
25 toFocus(id) to set direct focus //answer_pbd3_00//
//toFocus('answer_pbd3_00');
 
26 doMax(val_arr) maximum value in array of ids //a02a//
//var m=doMax(['a01a','a01','a02']);
//setVal('a02a',m);
 
27 doMin(val_arr) minimum value in array of ids //a02a//
//var m=doMin(['a01a','a01','a02']);
//setVal('a02a',m);
 
28 doBlock(id) block field with id //answer_pbd3_00//
//doBlock('answer_pbd3_00');
 
29 doUnblock(id) unblock field with id //answer_pbd3_00//
//doUnblock('answer_pbd3_00');
 
30 doCheck(id,val) check field with id,val for checkbox,radio,select //answer_pbd3_00//
//doCheck('answer_pbd3_00','3');
 
31 doUncheck(id) uncheck field with id,val for checkbox,radio,select //answer_pbd3_00//
//doUncheck('answer_pbd3_00');
 
32 toCaps(id) change to capital letters //answer_pbd3_20//
//toCaps('answer_pbd3_20');
 
33 doPlus(res_arr) add values in array //q3//
var res_arr=["answer_q510","answer_q511","answer_q512"];
var p=doPlus(res_arr);
setVal('q3',p);
 
34 doMinus(val1,val2) minus numeric values //q3//
v1=getVal('q1');
v2=getVal('q2');
v3=doMinus(v1,v2);
setVal('q3',v3);
 
35 doMultiply(val1,val2) multiply numeric values //q3//
v1=getVal('q1');
v2=getVal('q2');
v3=doMultiply(v1,v2);
setVal('q3',v3);
 
36 doDivide(val1,val2) divide numeric values //q3//
v1=getVal('q1');
v2=getVal('q2');
v3=doDivide(v1,v2);
setVal('q3',v3);
 
37 doConcat(val1,val2) concat values //q3//
v1=getVal('q1');
v2=getVal('q2');
v3=doConcat(v1,v2);
setVal('q3',v3);
 
38 doRowHide(id,Nos) Nos=0 for rest of all //answer_q02_04//
//var a=getVal('answer_q02_04');
//if(a==1){
//doRowHide('answer_q02_04',6);
//}
 
39 doRowShow(id,Nos) Nos=0 for rest of all //answer_q02_04//
//var a=getVal('answer_q02_04');
//if(a==2){
//doRowShow('answer_q02_04',6);
//}
 
40 setQtext(id,res_arr) //answer_q02_04//
//var res_arr={"label1":"value1", "label2":"value2"};
//setQtext('answer_q01',res_arr);
 
41 getLabel(id) //var a=getLabel('answer_q01');
//var res_arr={"label1":a.ENGLISH, "label2":a.HINDI};
//setQtext('answer_q01',res_arr);
 
42 isMobile(id,digits,minimumdigit) digits- total digit of phone //answer_pbd3_10//
minimumdigit - starting digit //isMobile('answer_pbd3_10',10,6);
 
 
 
 

this is a simple text.

this is a simple text.

this is a simple text.

this is a simple text.

this is a simple text.