getFieldValue() API の例

var a =  formBridge.getFieldValue("xfa.form.form1.Subform1.TextField");
if(a.errors) {
    var err;
     while((err = a.getNextMessage()) != null)
               alert(a.message)
} else {
   alert(a.data[0])
}

getFieldProperties(som, property) SOM 式で指定されたフィールドの提供されたプロパティの値リストを取得

  • 必要情報:

    • som:​フィールドの SOM 式が含まれている配列
    • property:​値が要求されるプロパティの名前
  • 出力:​結果が配列として data プロパティに含まれているオブジェクト

  • エラー:なし

setFieldProperties(som, property, values): SOM 式で指定されたすべてのフィールドの提供されたプロパティの値を設定

  • 必要情報:

    • som:​値の設定が要求されるフィールドの SOM 式が含まれている配列
    • property:​値の設定が要求されるプロパティ
    • value: SOM 式で指定されたフィールドの提供されたプロパティの値が含まれている配列
  • 出力:​なし

  • エラー:なし

Form Bridge API の使用例

// Example 1: FormBridge.restoreFormState
  function loadFormState() {
    var suc = function(obj) {
             //success
            }
    var err = function(obj) {
           while(var t = obj.getNextMessage()) {
         $("#errorDiv").append("<div>"+t.message+"</div>");
           }
           }
        var _formState = // load form state from storage
    formBridge.restoreFormState({success:suc,error:err,formState:_formState}); // not passing a context means that this will be formBridge itself. Validation errors will be checked.
  }

//--------------------------------------------------------------------------------------------------

//Example 2: FormBridge.submitForm
  function SubmitForm() {
    var suc = function(obj) {
             var data = obj.data;
         // submit the data to a url;
            }
    var err = function(obj) {
           while(var t = obj.getNextMessage()) {
         $("#errorDiv").append("<div>"+t.message+"</div>");
           }
           }
    formBridge.submitForm({success:suc,error:err}); // not passing a context means that this will be formBridge itself. Validation errors will be checked.
  }
自動翻訳
言語セレクターを使用して、このページの英語版を表示します。
翻訳は役に立ちましたか?

Ask AI

Not sure where to start?
Ask me anything about Adobe products.

Type your question or pick a suggestion below.

Use of this AI chatbot is subject to Adobe's Privacy Policy. Don't share sensitive data. AI responses are not your Content, may be inaccurate, and any offers provided are non-binding. Generative AI Terms.