Salesforce Dynamic Prefill: チェックボックスが機能しない

  • htonosaki
    2025年5月29日 2:25に質問
    ・チェックボックス項目のプレフィルが機能しない ・チェックボックス項目のプレフィルが機能しない
  • Raymond Jotform Support
    2025年5月29日 2:49に返信

    Hi Hiroto,

    I just wanted to remind you that I'll be helping you in English using Google Translate because our Japanese Support agents are busy helping other Jotform users right now, and you can reply in whichever language you feel comfortable using. But, if you'd rather have support in Japanese, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, can you share with us what type of field your Jotform Multiple Choice field is mapped to? For best results, we suggest using Salesforce Field to a Multi-select picklist. This will allow the integration to send the values instead of True or False with the checkbox element.

    Give it a try and let us know if you need any help.

  • Stanley
    2025年5月29日 2:50に返信

    Hi Hiroto,

    This link may help you to solve your problem.

    Have a great day.

  • htonosaki
    2025年5月29日 2:57に返信

    Jotform側が複数選択フィールド(統合時に選択肢のテキスト値が投げられる)だから、Salesforce側のチェックボックス項目(true/false)に反映されないということですね。

    Jotform側にチェックをつけるだけの項目で、統合時にはtrue/falseで値を投げるようにはできないでしょうか?フォーム上では項目名とチェックボックスだけ表示させて、true/falseの表示はさせない、というのが理想です。

  • Raymond Jotform Support
    2025年5月29日 3:38に返信

    Hi Hiroto,

    Unfortunately, it's not possible to make a field like that yet. Can you share with us the type of information you're trying to collect? For example, sharing with us a screenshot of the field in your form, and how it appears in your Salesforce integration can help us understand your flow better and see if there are workarounds available.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • htonosaki
    2025年5月29日 3:48に返信

    スクリーンショットを添付します。

    不動産購入に関するアンケートフォームで、ガレージを希望するかどうかの項目です。

    フォームのフィールドについては変更可能ですが、

    Salesforce項目については変更不可のチェックボックス形式なので(true/false)での連携が必須になります。


    フォームフィールド

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 30

    Salesforce項目

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 41

  • Raymond Jotform Support
    2025年5月29日 6:40に返信

    Hi Hiroto,

    I understand what you’d like to do, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.

    Thanks for your patience and understanding

  • Raymond Jotform Support
    2025年5月29日 7:13に返信

    Hi Hiroto,

    Unfortunately, it's not possible to map SF checkbox to Multiple choice field in Jotform but, we can map it to a Short Text field, then create a conditional logic that ticks the Multiple Choice field. Let me show you how:

    1. In Form Builder, click on the Settings tab on the orange navigation bar at the top, and click Conditions on the left side panel.
    2. Next click on Add New Condition and select Update/Calculate condition.
      Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 40
    3. Create a similar condition below and click on the Save button.
      Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 51

    Here's how it would work:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 3 Screenshot 62

    Feel free to test this demo form or clone it to your account to inspect it further. We also have a guide on How to Insert Text or Calculation Into a Field Conditionally that you can check out.

    Give it a try and let us know if you need any help.

  • htonosaki
    2025年5月29日 22:43に返信

    ありがとうございます。

    いただいた内容で設定したら、ショートテキストをSalesforceよりプレフィルし、テキストがtrueだったら複数選択の「車庫を希望する」のチェックをつける動きは出来ました。

    【プレフィル】

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 60

    【フィールドの計算】

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 71

    【フォーム上の反映】

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 3 Screenshot 82


    しかし、複数選択の「車庫を希望する」を外した際にテキストをfalseにする動きがうまくいきません。

    どのように設定すればよいでしょうか

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 4 Screenshot 93

    ※複数選択の「車庫を希望する」のチェックをつけると自動ですぐに外されてしまう

     テキストの方はずっと空欄

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 5 Screenshot 104

  • Jason Jotform Support
    2025年5月30日 0:59に返信

    Hi Hiroto,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience, we appreciate it.

  • htonosaki
    2025年5月30日 1:55に返信

    No problem, thank you.

  • Jason Jotform Support
    2025年5月30日 3:53に返信

    Hi Hiroto,

    You need to delete those conditions you shared and replace them with the following conditions:

    First condition:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 40

    Second condition:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 51

    In this case, when the field 車庫希望 option isn't selected, the 車庫希望_text will automatically send the value to False. Then, if the field 車庫希望 option is selected, the 車庫希望_text will automatically send the True value. Check out the screencast below:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 3 Screenshot 62

    Here's my cloned form if you want to clone and test it from your end. We've got a guide here that'll show you how to clone a form.

    Give it a try and let us know if you need any help.

  • htonosaki
    2025年6月2日 1:32に返信

    下記エラーが出ますので、ご確認ください。

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 20


    また、この場合プレフィルによって「車庫希望_text」に入れた値から「車庫希望」に値を反映させる計算が無いように見えます。

    プレフィルによって「車庫希望_text」にfalseと入ったら「車庫希望」はnullになり、「車庫希望_text」にtrueと入ったら「車庫希望」は「車庫を希望する」になるようにしたいです。

  • Raymond Jotform Support
    2025年6月2日 2:52に返信

    Hi Hiroto,

    Consider only using this condition in the screenshot below:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 20

    This will automatically check the checkbox in your form if the Garage Desired Text field is filled. This means that as long as value is sent from your Salesforce account to this field, the checkbox will be ticked. But if no data populates this field, then the checkbox will not be ticked.

    Give it a try and let us know if you need any help.

  • htonosaki
    2025年6月2日 3:37に返信

    プレフィルではSalesforce側のチェックがついていない場合、「車庫希望_text」には"false"の値が入るので

    「is filled」の条件では"false"が入っている場合もチェックがついてしまうかと思います…

    また、プレフィルからの反映だけでなく、「車庫希望」のチェックのつけ外しによって「車庫希望_text」のテキストも更新したいです。

    チェック項目とテキスト項目を相互同期させるイメージです。

  • Sergio
    2025年6月2日 3:53に返信

    Hi Hiroto,

    You can use Jotform’s “Update/Calculate Field” condition to synchronise checkboxes and text fields. For example, you can set it up so that a text field is updated when a checkbox is selected, or so that a box is checked based on the value of a text field.

    Specifically, you can set it as follows:

    • Create a condition to set the text field to 'true' when the checkbox is selected.
    • Create a condition to set the text field to 'false' or empty when the checkbox is not selected.
    • Create a condition to automatically select the checkbox when 'true' is entered in the text field.
    • Create a condition to uncheck the checkbox when 'false' or an empty string is entered into the text field.
    • Setting reciprocal conditions in this way ensures that the values of the checkbox and text field are always synchronised.

    However, if the condition is only 'filled', the checkbox will be checked even if 'false' is entered in the text field. Therefore, you need to set the condition so that the checkbox only checks when the text field's value is 'true'.
    I hope it was useful.

    Let us know if you have any questions.

  • htonosaki
    2025年6月2日 21:31に返信

    いただいた条件で「フィールドの更新/計算」を作成してみましたが、うまく動作しません。

    ご確認いただけますでしょうか?

    フォーム:https://form.jotform.com/230741528450452


    【作成した条件】

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 20

    4つめの条件で「チェックボックスを外す」ために挿入する値がわからなかったので"null"としています。


  • Raymond Jotform Support
    2025年6月2日 23:01に返信

    Hi Hiroto,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    Thanks for your patience.

  • Raymond Jotform Support
    2025年6月2日 23:17に返信

    Hi Hiroto,

    You can just use a single condition below:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 30

    The Multiple Choice field is unchecked by default so unless true is sent by your SF checkbox field, only then the checkbox in your form will be ticked. Check out the screencast showing how prefills from records with both checked and unchecked checkboxes will work:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 41

    As you can see, even when the box is checked, selecting a record with unchecked box in SF will also uncheck the existing checked box in Jotform. You may test this demo form.

    Give it a try and let us know if you need any help.

  • htonosaki
    2025年6月2日 23:53に返信

    これはSFからのプレフィルの値によって、フォーム上のチェックをつけ外しするだけの条件ですよね?

    これに、フォーム上でチェックをつけ外しした際にSFに統合するテキスト項目の値を更新する条件を合わせて作成したいです。

    私のフォームはまだ使用していないので、直接条件を変更していただくことは可能ですか?

    それが無理なのであれば、記載の条件を全て満たす設定のスクリーンショットを送ってください。


  • htonosaki
    2025年6月3日 0:05に返信

    もしかしたら言語の違いによる認識齟齬に問題があるかもしれないので、

    日本語担当の方をつけていただくことは可能ですか?

  • Raymond Jotform Support
    2025年6月3日 0:15に返信

    Hi Hiroto,

    Yes, the conditions above are only for populating your form through Salesforce Dynamic prefill. Updating your Salesforce record requires the use of Salesforce integration. It can be done simply without any additional conditions. Check out my sample configuration below:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 40

    Here's the record screenshot originally:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 51

    Check out the screencast below showing the update after form submission:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 3 Screenshot 62

    As you can see, the related data, including the long text field and checkbox field, on Salesforce was updated based on the submission I made in the form.

    Give it a try and let us know if you need any help.

  • htonosaki
    2025年6月3日 1:32に返信

    Salesforce連携の方法を知りたいのではありません。

    Salesforce連携するにあたり、フォーム側からチェックボックスをつけたらテキスト項目がtrueになり、チェックを外したらテキスト項目がfalseになるようにしたいです。

    これを先ほどのテキスト項目へプレフィルしてチェックをつける条件と併せて設定したいです。


    日本語対応が可能なスタッフの方と代われますでしょうか?

  • Nozomi_K Jotform Support
    2025年6月3日 7:36に返信

    こんにちは、戸ノ崎様。

    Salesforce連携するにあたり、フォーム側からチェックボックスをつけたらテキスト項目がtrueになり、チェックを外したらテキスト項目がfalseになるようにしたいとのこと理解しております。この理解が違う場合、問題を明確にするために、さらに詳細の情報を教えてください。クローンしたフォームでテストしたところ、同じ問題を再現できました。これは、条件を使って直接、trueやfalseの値を入れることはできないからです。

    他の解決策としては、条件と計算値を使って渡すことができます。「Yes/No」の単一選択フィールドに、「true/false」という計算値を割り当てて、それを条件付きロジックで別のフィールドに渡す方法が有効です。その方法をお見せします:

    以下のようにシングルチョイスの値を設定します:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 40条件を以下のように設定してください:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 2 Screenshot 51結果です:

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 3 Screenshot 62 ここにデモフォームを作成したので、クローンを作成して動作を確認しながらテストしてみてください。

    何卒よろしくお願いいたします。

  • htonosaki
    2025年6月3日 21:08に返信

    ありがとうございます!

    いただいた条件に加え、テキスト項目にプレフィルされた値からチェックボックスに反映させる条件を作成したところ、希望通りの仕様になりました。

    Salesforce Dynamic Prefill: チェックボックスが機能しない Image 1 Screenshot 20


    ご対応いただきありがとうございました。

Your Reply