HCSF forms - use of ref:dDocName on redirect?

Hey Bex,

On page 97 you are going thru an example of using a form with comments and you talk about getting the latest revision of the content (instead of waiting for indexing.) You refer to using a RedirectURL field that points to the GET_FILE service but mention that this ruins the use of ref:fieldName flags.

The problem is that you're relying on ref:dExtension to decide if the page is an empty form or a completed submission. After I add a comment I always get the empty form!

I got around it by doing an executeService("GET_INFO_SIMPLE") and using #active.dExtension instead... but I was wondering if you had a more elegant solution that you could have included in the book.

Cheers,
Mikey.

perhaps...

What did you set RedirectURL to?

You need to set a variable on your form to the value for "ref:dExtension", then use encoded IdocScript to pass that value from one page to the next. Sort of like how the DataScript value is determined.

The confusion comes in because certain variables are only available in certain scopes, and you need to pass them from one scope to another... AND encode them properly so they don't get evaluated at the wrong time.

Whew!

Of course, if you have something that works, you can leave it alone until you have performance problems ;-)

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This form prevents comments spam...