Confiforms Parent -> Child Form prepopulation

Henry Dench June 17, 2024

I have a hierarchy of forms with a ref data form. I am trying to pre-populate the child of the form based off the parent - is there anyway to do this?

Layout:

Parent
- Ref Data 1 Smart multi-select
- Ref Data 2 Smart multi-select

Child
- Ref Data 1 Smart multi-select [pre-populated by entry.parent.refdata1]
- Ref Data 2 Smart multi-select [pre-populated by entry.parent.refdata2]

Ref Data
- Table 1: 1 Column, Text
- Table 2: 1 Column, Text

PS - would be nice if the pre-population shows up in the form upon selection of the Parent Value, but not 100% required

2 answers

1 vote
Henry Dench June 17, 2024

@Alex Medved _ConfiForms_ thanks in advance :)

 

0 votes
Alex Medved _ConfiForms_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 17, 2024

Hi @Henry Dench 

Yes you can just have a https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Field+Definition+Rules#ConfiFormsFieldDefinitionRules-Setvalue rule to set the value of the smart multi-row field (expects an ID)

child1=[entry.parent.refdata1]&child2=[entry.parent.refdata2]

Rule to set on tracking the "parent" field (first parameter in the macro) and with condition to be something like 

!parent:[empty]

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events