I am trying to create a Stateless form and am getting an error. I am looking up a field from one form and then trying to have it display relating fields that can be updated and then saved back to the other form. The form I am looking up is called Players, The field is called PlayerName. The fields I am trying to display are Team, Position, Owner. I keep getting an error and am not sure what is wrong. Can anyone help?
The code I am using is ....
form Draft
{
store data in zc = false
Lookup_1
(
displayname = "PlayerName"
type = picklist
values = Players.PlayerName
on user input
{
r = Players [PlayerName == input.Lookup_1];
input.Team = r.Team;
input.Position = r.Position;
input.Owner = r.Owner;
}
)
Team
(
type = text
)
Owner
(
type = picklist
values = Owners.OwnerName
)
Position
(
type = text
)
actions
{
update
{
type = button
displayname = "Update"
on click
{
r = Players [PlayerName == input.Lookup_1];
r.Team = input.Team;
r.Position = input.Position;
r.Owner = input.Owner;
}
}
reset
{
type = button
displayname = "reset"
}
}
}