# 入力データの送信

#### 未入力チェック&#x20;

`GetInformation("INPUT_CHECK_VALIDITY")`は**OnCheckValidity**イベントに未入力チェックスクリプトを保持している最初のボタンを見つけてスクリプトを実行させます。そして、スクリプトがtrueをリターンする場合は`'valid'`を返します。&#x20;

#### 入力データの抽出

`GetInformation("INPUT_JSON_ALL")`はe-FormのすべてのコンポーネントからJSON文字列のFormIDとその値を抽出します。

```javascript
<script>
function submit() {
	if (OZViewer.GetInformation("INPUT_CHECK_VALIDITY") == 'valid') { // '' if not valid
		document.getElementById("inputdata").innerHTML = 
			OZViewer.GetInformation("INPUT_JSON_ALL");  // all input values in JSON
	}
}
</script>
<div style="text-align: center;">
<input type="button" value=" SUBMIT " onclick="submit()" style="text-align:center">
<p id="inputdata"></p>
</div>

<body style="width:98%;height:98%">
<div id="OZViewer" style="width:98%;height:98%"></div>

<script type="text/javascript" >
var serverUrl = "http://" + location.host;
function SetOZParamters_OZViewer(){
	var oz = document.getElementById("OZViewer");
	oz.sendToActionScript("information.debug", "true"); // viewer console
	oz.sendToActionScript("connection.servlet",serverUrl + "/oz/server");
	oz.sendToActionScript("connection.reportname","/eform/getinformation.ozr");
	return true;
}
start_ozjs("OZViewer", serverUrl + "/oz/HTML5viewer/");
</script>
```

[Run example](https://demo.ozeform.io/oz/eform/getinformation.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jp.ozeform.io/bjonbakkuappu/oz-viewer-study/dtano.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
