Autofil Variable How to fill in a choice input using a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2024 10:09 AM
I have an autofil variable where I want to use the Script attribute to populate my input choice field. However, pulling just the value in the script include is not working. Does anyone know what format I am supposed to be returning for an input choice field via the script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2025 08:55 AM
Returning the choice value is good to autofill for non-multi-select choice input. For example, if one of your choices has value 18 and you want to have value 18 selected in the choice input, the script attribute for the autofill scripted variable can have a value like
javascript: '18';
Maybe you can print out the choice value returned in your script include to confirm.