Pre-populated Form Input
1 answer
The way we did this was as follows (I think as I'm not at my desk/with document)
Assume read the last record...
Create a page variable of type API with query to get the last record
Create variables referencing the page variable to get the individual fields
Change the form fields to point to these new variables
Change the formOutput variable from the generated $data.formoutput... to reference the individual fields so it can return them rather than the input fields....
Something like that.
regards
Seán
Comments
Do you want to pre-fill the form with some static values?
Antoine,
Not really. I want to display a DBM object retrieved from the database with a find method.
Thank you.