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
Comment #2
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedYou should be able to use a computed element that is only visible to admins.
Comment #3
lomale@bluewin.ch CreditAttribution: lomale@bluewin.ch as a volunteer and commentedYes 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
Comment #4
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedPlease 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.
Comment #5
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedComment #6
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commented