Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はデータ「家族、個人」を含む「タイプ」と呼ばれるテーブルを持っています私はいくつかのページでタイプのドロップダウンだけに個人をロードし、別のページでは両方をロードしたい
どうやってやるの??
前もって感謝します
はい。モデルでデフォルトを設定できます。
db.yourtable.yourfield.requires=IS_IN_SET(('family','individual'))
どんな行動でもあなたはすることができます
db.yourtable.yourfield.requires=IS_IN_SET(('family'))