I know that I can pre-populate a ConfiForm from the URL like so:
//<my server>/display/<space>/<confluence page>?cf_name=<form>&cf_values=<field1>:<value1>;<field2>:<value2>
Is there a similar URL-driven way to pre-populate the form with an existing entry to edit it? In this example value1+value2 would be uniquely validated and guaranteed to return only one entry (or possibly no entries... in which case it would be nice to create a new one).
Thank you!
I see that I can "edit" an entry by the following:
But my question was more about pre-populating my form with the previously saved info. Let's assume I don't know my previously saved ID. Would the optimal way to do this be via a "lookup and set value", against the same form?
This seems workable - but also hugely inefficient. I'm hoping there is a way to simply tell a form to prepopulate with an existing entry based upon my cf_name and cf_values fields rather than having to make all these steps?
Thanks for all your help. As always :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tis sounds overly complicated...
Not sure why you need all those IDtoUpdate and field definition rules... just set the id field right in the url
cf_values=id:<my entry id>
Also, to lookup for data in existing records please have a look at this demo
https://wiki.vertuna.com/display/TEST/Form+to+lookup+and+preset+values+from+existing+records
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.