function setAlert(executionContext)
{
var formContext = executionContext.getFormContext();
// Access the field on the form
var field = fieldformContext.getAttribute("new_requesturgentflag").getText();
if(field == "Yes")
{
var alertStrings = {text: "Please contact your Supervisor immediately."};
var alertOptions = { height: 120, width: 260 };
//alert("Please contact your Supervisor immediately.");
}
}
Hey guys I am trying to find the problem with this code but could not find it . Could you guys help
requesturgentflag is an option set
I get this error
Web resource method does not exist: setAlert(executionContext)
yes
Did that change solve your issue?
hey I go the solution instead of getText() used getValue()
could it be a logical error
Based on what you provided everything should work fine.
Can you please provide the screenshot that demonstrates how it is registered now and full code of your webresource.
Based on facts you provided at the moment everything should work fine.
i get Web resource method does not exist: setAlert
In registration use setAlert, not setAlert(executionContext) also in registration check "Pass Execution Context as a first parameter" checkbox.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156