[ic] Value not updating

Jon Jensen jon at endpoint.com
Tue Dec 8 17:44:05 UTC 2020


Mihai,

If I understand you correctly, you want [value account_code] to contain 
the selected account_code submitting in the form previously?

If so, you can use [cgi account_code] to get the form submission on the 
immediate next page only, or place [update values] earlier on the page 
which will copy account_code from cgi to values space. (But which may have 
other effects you don't want, so would need careful testing.)

Jon


On Thu, 5 Nov 2020, mihai at airdelights.com wrote:

> Hello all,
>  
> I am having some trouble with a <select> HTML tag on one of my pages. I have a form that is supposed to get information from the <select> options before submitting.
>
>
> <FORM ACTION="[area commerce]" METHOD="POST" name=payment>
> ...
> <input type="hidden" name="cc_code" value="[value account_code]">
> ...
> <select name=account_code tabindex="25001">
>     <option value="">-</option>
>     [cards]
>     <option value=[card-param code] [if-card-param !token] disabled="disabled"[/if-card-param]>[card-param reference]</option>
>     [/cards]
> </select>
>
>
> [cards] in this instance refers to the list of cards resulting from a query based on the customer ID. 
>
> My issue stems from the "account_code" value. From my understanding, the value of the <select> field should be updating based on which option is being selected. However, when I submit the form, the value being passed through "cc_code" is the value found on page load, not the one selected through the <option>. In other words, selecting an option does not change or update the value of "account_code" when submitting the form.
>
> Am I trying to go about gathering this data value incorrectly? Am I missing something in the code in order to update this value?
>
> Any help or pointers are appreciated. Thank you very much.
>
>
> Best,
> Mihai Dan
> Air Delights


-- 
Jon Jensen
End Point Corporation
https://www.endpoint.com/


More information about the interchange-users mailing list