I have an
edit form on the front end for a custom component I'm buidling
When I need to create a
new entry I just use the proper url to open the edit form and then
save. All works fine
However, there are some occasions when I am jumping to that edit
form from another view and need to pre-populate a value on that
edit form based on the view I'm presently on, and I want to NOT
allow the user to change that one field.
Not sure exactly how to
do this.
I was thinking of just
saving the value while on the original view as a session variable
(because I need to do this with several forms throughout the site
- all originating from that one form) or possibly via a parameter
on the link used to get to the edit form, but not sure how to use
that session variable to get the field set as needed on the edit
form once the user arrives there.
Anyone have some tips or
sample code you could share?
I've searched around but can't find anything that does quite this.