-
I am trying to obtain a value set in the user table (this value is set via a drop down list) and have this value automatically set a value in another drop down list in another form on opening of the form. So far my code is as follows but I get a script error. This is my first project is asp and serenity. PSwitchDialog.ts
ScriptUserDefinition.cs
PSwitchForm.cs
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
This is the code that ended up working for me. |
Beta Was this translation helpful? Give feedback.
This is the code that ended up working for me.
if (this.isNew()) { var ud = Authorization.userDefinition; this.form.HospitalId.value = ud.DefaultHospital.toString(); }