BoltWire

Innovative Ideas :: Radical Results!

INFORMATION

DOCUMENTATION

SOLUTIONS

Preserve Input

Documentation > Forms > Preserve Input

Summary

Below is an example form to demonstrate how to preserve default values.



<code> [form] Two A B C [session warn "Form Aborted"] [form] </code>

If your are prefilling the box input with content, you can replace the preview function with the following to preserve changes, while loading a default value:

<code>!!Summary Below is an example form to demonstrate how to preserve default values. /* Here is a sample form to demonstrate how to preserve default values when a form aborts for each of the form elements that can be preserved: */ <code> [fo`rm] [text one] [check two on checked='{?two}']Two [radio three a checked='{?three}']A [radio three b checked='{?three}']B [radio three c checked='{?three}']C [select four default='{?four}'] [option value='a']A [option value='b']B [option value='c']C [option value='d']D [select] [box five][(preview five output=escape)][box] [submit] [session warn "Form Aborted"] [fo`rm] </code> If your are prefilling the box input with content, you can replace the preview function with the following to preserve changes, while loading a default value: <code>[(source {p} post=content)]</code> You can preload a text field with a data value, by doing something like: <code>[(source {p}:field)]</code> </code>

You can preload a text field with a data value, by doing something like:

<code></code>

Copyright © 2013, all rights reserved.