# 【Bubble.】Set stateの値によってGroupのType of contentの値を変更したい

**URL:** <https://www.nocode-faq.com/t/topic/3623>\
**Category:** bubble\
**Tags:** フロントエンド\
**Created:** [2023 年 5 月 15 日午前 3:42 UTC](https://www.nocode-faq.com/t/topic/3623 "2023-05-15T03:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matsubara.yuki](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@matsubara.yuki](https://www.nocode-faq.com/u/matsubara.yuki)\
**Post date:** [2023 年 5 月 15 日午前 3:42 UTC](https://www.nocode-faq.com/t/topic/3623/1 "2023-05-15T03:42:17Z")

</div>

### 実装したい機能

Custom stateの値によってRepeating GroupのType of contentの値を変更したいです。

### スクリーンショット

 ![スクリーンショット (556)](https://us1.discourse-cdn.com/flex020/uploads/ncc_forum/original/2X/a/a7ea55b7753ecb1f28a8d1d0d3ecf6ec1891c94c.png)

### 試したこと

「Aについて」をクリックするとtestページのCustom state（state name = page） の値をtext型で「Aについて」になるようにしました。

testページのCustom stateが「Aについて」になったら、

右の白いグループ「Group A」のType of contentがabout\_Aというデータタイプにするために

Group Aのconditionalから「When test’s page is “Aについて”」と設定し、

Select a property to change when trueからType of contentの値を変更できるものを探してみたのですが、見つかりませんでした。

---

<div class="post-metadata">

**Author:** ![TomokoTsuruta](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@TomokoTsuruta](https://www.nocode-faq.com/u/TomokoTsuruta)\
**Post date:** [2023 年 5 月 15 日午前 4:34 UTC](https://www.nocode-faq.com/t/topic/3623/2 "2023-05-15T04:34:43Z")

</div>

Type of content はデータの根幹に関わる設定ですのでconditionalでは変更できないようですね。  
conditionalで変更できるのは抽出条件と外観くらいです。

”A”データタイプと”B”データタイプがどのような構成か不明ですが、Repeating GroupをA用・B用と2つ作ってVisibleを切り替えるのはいかがでしょうか？

---

<div class="post-metadata">

**Author:** ![matsubara.yuki](https://avatars.discourse-cdn.com/v4/letter/m/e99b99/32.png) [@matsubara.yuki](https://www.nocode-faq.com/u/matsubara.yuki)\
**Post date:** [2023 年 5 月 18 日午前 4:17 UTC](https://www.nocode-faq.com/t/topic/3623/3 "2023-05-18T04:17:23Z")

</div>

ご回答ありがとうございます！  
Type of contentsの性質についての理解ができて助かりました！  
あと今回私が直面していた課題に関しましてはDB設計を改変した結果解決できました！m(\_\_)m
