0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Salesforce正規表現を使って入力規則とフロー入力検証の違いを説明

Posted at

Salesforceの入力規則とフローの入力検証の違いを一言でいうと
一般的の入力規則はtrueの時、エラーが発生します。
フローの入力検証はfalseの時、エラーが発生します。
つまり、同じ中身の反対を入力すれば、同じ効果になります。
例えば、
⓵オブジェクトのカタガナの項目にカタガナのみ入力させたいとき下記の数式を使います。
入力規則→エラー条件数式:NOT(REGEX(kana__c,"^[ア-ー]+$"))
その結果
エラー画面1.png
⓶フロー項目の場合
入力を検証→数式:REGEX({!kana},"^[ア-ー]+$")
その結果
エラー画面2.png
その{!kana}というのはコンポーネントのAPI名になります。
画面3.png

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?