f365.data, bulk read and write
Read every field's value at once, or apply a patch across multiple fields atomically.
The f365.data() helper does in one call what looping over every field
would do over many. Two shapes:
| Property | Description |
|---|---|
f365.data() | Returns a plain object of { internalName: value } across every visible field. |
f365.data(patch) | Applies a patch, only keys present in patch are written; absent keys are left alone. |
Examples
Snapshot the form
const before = f365.data();
// ... user makes changes ...
const after = f365.data();
const changedKeys = Object.keys(after).filter((k) => after[k] !== before[k]);
Bulk prefill from an external lookup
const profile = await f365.http.get<{ name: string; email: string; phone: string }>(
`/api/profile/${userId}`
);
f365.data({
FullName: profile.name,
ContactEmail: profile.email,
ContactPhone: profile.phone,
});
Related
Related articles
- f365.field, accessing form fields
Read and write field values, toggle visibility/enabled/required, listen for events, focus, blur, validate.
- f365.http, typed HTTP client
Get / post / put / delete with JSON parsing. Throws on non-2xx, no need to check response.ok.