경고 상자에 두 가지 다른 사항을 확인하려고하는 경우, 명세서. 첫 번째는 사용자가 예 버튼을 누르고 두 번째는 페이지의 사용자 입력 값입니다. 아래 코드를 참조하십시오. 나는 아직도 아주 초록색이다. 어떤 도움이라도 대단히 감사 할 것이다.명세서 및 조건
var cMsg = "You are about to reset this page!";
cMsg += "\n\nDo you want to continue?";
var nRtn = app.alert(cMsg,2,2,"Question Alert Box");
if(nRtn == 4) && (getField("MV").value == 5)
{
////// do this
}
else if(nRtn == 4) && (getField("MV").value == 6)
{
/////then do this
}
else if(nRtn == 4) && (getField("MV").value == 7)
{
/////then do this
}
}
else if(nRtn == 3)
{
console.println("Abort the submit operation");
}
else
{ //Unknown Response
console.println("The Response Was somthing other than Yes/No: " + nRtn);
}
무엇이 질문입니까? – Teemu
구문이 잘못된 경우 먼저 if (condition) .... if ((nRtn == 4) && (getField ("MV"). 값 == 5))를 사용하십시오. – Satpal
@Satpal That 's 내가 뭘 찾고 있었는지 ... 고마워. –