Could someone help me

how can I populate another field with data coming from a first one for internal use
not on the form itself but for admin use.

i.e.

toggle_advanced:
'#type': toggle
'#title': 'I will participate at the next training'
'#title_display': before
'#description_display': before
'#admin_title': Anmeldung
'#toggle_theme': iphone
'#toggle_size': large
'#on_text': 'YES'
'#off_text': 'NO'

how could i get the data 'YES' into
a next field
i.e.
into
submission status:

'#type': ??

'#title': submission status
'#description': ‚change the current status‘
'#default_value': submission made

'#format': ??

'#admin_title': submission status

actions:
'#type': webform_actions
'#title': 'Submit button(s)'
'#submit__label': 'Submit'

Thanks

Comments

lomale@bluewin.ch created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review

You should be able to use a computed element that is only visible to admins.

lomale@bluewin.ch’s picture

Yes thats clear

but how would i populate it with data coming from

toggle_advanced:
'#type': toggle
'#on_text': 'YES'

???

I know for you just peanuts
Thanks

jrockowitz’s picture

Please attach a working form that shows, what you are trying to accomplish.

One pattern is to create a computed element that is then inserted into other elements as a token.

jrockowitz’s picture

Status: Needs review » Postponed (maintainer needs more info)
jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)