Skip to content

Commit 34098c0

Browse files
authored
Add files via upload
1 parent c63f019 commit 34098c0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
362 KB
Binary file not shown.

ss_parking_script.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function onVehicleSelect(executionContext) {
2+
var formContext = executionContext.getFormContext();
3+
4+
// Get selected vehicle (lookup)
5+
var selectedVehicle = formContext.getAttribute("ss_vehicle").getValue();
6+
7+
if (selectedVehicle !== null) {
8+
var vehicleName = selectedVehicle[0].name;
9+
10+
// Show an alert (test trigger)
11+
alert("You selected: " + vehicleName);
12+
13+
// Optionally fill the parking request name
14+
formContext.getAttribute("ss_parkingrequestname").setValue("Request for " + vehicleName);
15+
}
16+
}

0 commit comments

Comments
 (0)