[ic] IC 5.2 How to require a field when fieldname is variable
Stefan Hornburg
racke at linuxia.de
Tue Jun 22 18:25:10 EDT 2004
On Tue, 22 Jun 2004 14:43:23 -0700
"Russell Mann" <tech at khouse.org> wrote:
> Hello,
>
> I have a system setup to handle gift subscriptions that can be sent to a
> user input email address. What I need to do is for the checkout form have a
> field name like this:
>
> emailto_[item-increment]
>
> Be required, and be required as an email address. But I only want it
> required if the [item-increment] numbered item is one of these gift
> products.
>
> Any suggestions on how to add dynamically a field to the "required" list?
Did you try that ? I suppose that
[set myprofile]
[item-list]
[if-item-field gift]
emailto_[item_increment]=email
[/if-item-field]
[/item-list]
[/set]
would work as profile.
Racke
--
Upcoming Talks and Presentations:
Linuxtag 2004, 25. Juni: Courier Mail Server (http://www.linuxtag.org/)
Perlworkshop 2004, 30. Juni: Entwicklung großer Perlanwendungen
am Beispiel von Interchange (http://www.perlworkshop.de/)
More information about the interchange-users
mailing list