The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Change smarty template - export - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Change smarty template - export (/showthread.php?tid=487) |
Change smarty template - export - mko - Feb 3rd, 2010 Hello, I use field option groups, and when I edit submission in select field, I see "Display Test" result. When I export submission I would see "Field Value" result and not "Display Test" result. How can change smarty template? Code: {if $field_type == "select" || $field_type == "radio-buttons"} Thanks RE: Change smarty template - export - Ben - Feb 3rd, 2010 So you want to see the actual VALUE of the dropdown options, not the display value? If so, you're at the right spot: just replace that code you posted with this: Code: {if $field_type == "select" || $field_type == "radio-buttons"} The smart_display_field_value function figures out what display text to show for the option based on the value. Outputting the value, like above, should just show the value instead. Hope this helps - Ben RE: Change smarty template - export - mko - Feb 4th, 2010 Thanks a lot, Ben. |