In a Single Record Update form I'm trying to update different fields based on the value of a Virtual field. The Virtual field is loading with and External Parameter (number value).
Depending on what value that Parameter is I need a specific field to update/change on when the 'Update' button is clicked. I don't want all fields to update, just a single specific field based on the value of the Virtual field.
For example:
If Virtual1= 3 then update myField1="mytext"
If Virtual1=4 then update myField2="mytext"
If Virtual1=5 then update myField3="mytext"
Here's some code I'm working with but can't seem to get it right. It's in the footer of the Single Record Update form.
I tried this without the 'else if' part (for just the first If=3) but still couldn't get it to work. It's probably just some syntax- any help would be greatly appreciated.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
DesiLogi
In a Single Record Update form I'm trying to update different fields based on the value of a Virtual field. The Virtual field is loading with and External Parameter (number value).
Depending on what value that Parameter is I need a specific field to update/change on when the 'Update' button is clicked. I don't want all fields to update, just a single specific field based on the value of the Virtual field.
For example:
If Virtual1= 3 then update myField1="mytext"
If Virtual1=4 then update myField2="mytext"
If Virtual1=5 then update myField3="mytext"
Here's some code I'm working with but can't seem to get it right. It's in the footer of the Single Record Update form.
I tried this without the 'else if' part (for just the first If=3) but still couldn't get it to work. It's probably just some syntax- any help would be greatly appreciated.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.