Can Field & Form Rule update Subject text when editing Request Details?
I have created an "On Field Change" Field & Form Rule to update the Subject text based on the contents of several fields. The rule works fine if someone changes the value of an Additional Field by editing the request via the Edit button at the top of the request screen, just to the right of the Request ID. But the Subject does not get updated if the user edits within the "Request Details" section - either by clicking the Edit button in that section or by clicking directly on a field to be edited.
Is there a restriction that prevents the Subject from being modified by a F&F rule when edits are made within the Request Details section? If so, is there any way around that?
More details below...
I created an Additional Field called "Location" to select a specific conference room from a pick list.
The Rule is "On Field Change" for the Location field, enabled for "On Created/Edit" and "Applies to All Users". There are Conditions that check that several fields are not empty since those fields are used to populate the Subject.
If the conditions are met, I see that the script is executed. In the partial code below, when the "alert" line is not commented out, the alert pop-up appears and shows the new value for the Location field, so I know the rule is executing successfully to that point. All of that happens regardless of how the request is edited.
But the Subject at the top of the screen doesn't get updated on screen, nor does it show as updated when refreshing the list on the Requests tab if the Location field is changed within the Request Details section of the request screen.
If the request is edited via the Edit button at the top of the screen, the Subject is seen to change right on the request screen, and then is seen to have been permanently modified when viewing on the Requests tab if the request changes are actually saved. So the rule works fine when editing the request via that method.
We are running Version 9.3 Build 9335 on MSSQL.
Below is a subset of the code for reference.
var vLocation=trim($CS.getValue("ServiceReq_901_UDF_CHAR9"));
alert("Location="+vLocation);
.
.
.
$CS.setValue("SUBJECT","SMH – Temporary A/V Equipment Setup - "+vLocation+" - SETUP on "+vShortSetupTime+" - EVENT START on "+vShortStartTime+" - "+vEquipmentList);
New to ADSelfService Plus?