Conditional uStore Logic

476 views
Skip to first unread message

hevelhouse

unread,
Oct 4, 2013, 4:25:54 PM10/4/13
to xmpie...@googlegroups.com
Hello.  I'm new to XMPie.  I've been using it for three weeks now.  One thing I noticed is the lack of adding conditional logic.  Here is an example:  I have a radio button.  If a user chooses yes to this button, I want a dropdown box to appear and make it a required field to choose an item.  If they change their mind and chose no on the radio button then the dropdown box will disappear and not be required anymore.  I also want this to happen on within the same step, not on another step or tab.

If this has been discussed before please refer me to the post and I'll research that option.

Is that possible?

Thanks,

Shawn

couch

unread,
Oct 5, 2013, 2:12:27 AM10/5/13
to xmpie...@googlegroups.com
What you are seeking is not available in the uStore admin when setting up the customization, but could be achieved by adding some custom javascript or jquery to the page.

Depending on your exact scenario, another way may be to use a HTML Generic Dial.

Igor

unread,
Oct 7, 2013, 12:12:47 PM10/7/13
to xmpie...@googlegroups.com
it is possible to do so with HTML Generic , but uStore also offers related / sub property workflow .
Unfortunately your first control has to be Gallery List View or Gallery Grid View , once your first dial will be one of those you can make a second dial appear once x value selected (in the dial configuration there is a checkbox in the Appears in steps: Sub-property of : 

hevelhouse

unread,
Oct 7, 2013, 3:01:54 PM10/7/13
to xmpie...@googlegroups.com
Thanks for the inputs.  I tried the gallery view and sub-property works good.  Is there a way to make the sub-property required when the parent property was clicked Yes?  Is there a way to set that up with the HTML generic tag or some other method?

Thanks,

Igor

unread,
Oct 7, 2013, 5:14:05 PM10/7/13
to xmpie...@googlegroups.com
All controls have a validation so depend on control subproperty can have different validations

hevelhouse

unread,
Oct 7, 2013, 5:27:53 PM10/7/13
to xmpie...@googlegroups.com
Thanks for the update.  I don't believe that works. I tried changing that field to mandatory.  It now requires me to answer this field even if the parent field still says no.  I only want to force a user to answer the sub-property when the parent property is marked yes.  Am I missing something?

Thanks,

On Friday, October 4, 2013 4:25:54 PM UTC-4, hevelhouse wrote:

Igor

unread,
Oct 7, 2013, 5:48:04 PM10/7/13
to xmpie...@googlegroups.com
sub property can be only connected to one value , meaning if you have parent with Yes and no you connect it to Yes . Another dial should be connected to no if you want to get some other value, that will require to create additional ADOR or in your case it has to be a variable.

hevelhouse

unread,
Oct 8, 2013, 9:25:40 AM10/8/13
to xmpie...@googlegroups.com
Igor.  Thanks so much for your help on this.  I'm sorry but I'm still a little confused.  Have you gotten this to work before.  I've attached some screenshots in a PDF for your review.  Maybe I'm still missing something.  I have a radio button that is set to Yes/No.  I've set up this as a Gallery List View and made the No the default option.  I have a drop down list for when they choose Yes from the parent radio button.  I've marked this as mandatory as well.  Per your instructions I chose and extra random variable that I had laying around to use for the parent No radio button.  I just made it an empty HTML Generic control.

I hope I set all of this up correctly.  Please correct me if I'm wrong. 

When I go to test it out in the store they following happens:  I get an error message when my parent radio button is no.  It tells me I need to chose a value from my drop down list which is tied to my yes option.  It shouldn't prompt me for anything because the parent radio button is no.  I should only get prompted when the parent radio button is Yes.

Thanks for your help.  I'm looking forward to your response on this because I'm apparently missing something.
xmpieGoogleGroup.pdf

hevelhouse

unread,
Oct 8, 2013, 10:11:25 AM10/8/13
to xmpie...@googlegroups.com
Couch or anyone,

I want to explore the HTML generic more.  How can you determine the field names so I can change the attributes for the controls?  I'd like to make fields required or show them as hidden or visible, how do you get the name of these fields so I can perform these actions?  I've not found anything in the documentation or this group talking about this.

Thanks,

On Friday, October 4, 2013 4:25:54 PM UTC-4, hevelhouse wrote:

Igor

unread,
Oct 8, 2013, 12:16:19 PM10/8/13
to xmpie...@googlegroups.com
Shawn , I see the problem. amd HTML Generic is not relevant here you didn't anderstood my comment about HTML Generic , forget about second sub dial you do not need it in this case.
It seems to me as a bug, , meaning if sub-property is mandatory and has no default value it asks user to select value for control that is not visible.
I'd open a bug here with support.

Now what can be done.
First you can have a default value setup , obviously only if customer will go and change it to no value and then use NO you will have a problem (but this is a very unique case).

if you know javascript you can use HTML Generic instead. 

Igor

unread,
Oct 8, 2013, 12:37:40 PM10/8/13
to xmpie...@googlegroups.com
I attached example of such HTML generic , I'm using JQuery .
Default Value:75
Object ID:
Callback Function:PassValue
Markup:
#DIAL_DISPLAY_NAME#:
<select id="wba">
<option value="100">100</option>
<option value="75">75</option>
<option value="50">50</option>
</select>
<script language="JavaScript">
function setDefaultValue(){
$("#wba").val("#DIAL_VALUE#").attr("selected", "selected");
function getMyVal(){
var myval = $("#wba").val(); 
PassValue(myval);
}
$("#wba").change(getMyVal);
setDefaultValue();
</script>
HTMLGenericDropdownExample.png

Matthew "LAMMY" Lamoureux

unread,
Oct 8, 2013, 1:31:15 PM10/8/13
to <xmpie-users@googlegroups.com>
Hi all,
    Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien.  it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work. 



THANKS!!
--
Matthew "LAMMY" Lamoureux



MSU Logo FaceBook Twitter LinkedIn

109 Talcott Road, West Hartford CT, 06110
Phone 860.523.0670 • Fax 860.523.0675
www.msudirectmail.com

This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. Please notify the sender immediately and delete this communication and any copies.

Matthew "LAMMY" Lamoureux

unread,
Oct 8, 2013, 1:55:23 PM10/8/13
to <xmpie-users@googlegroups.com>
Sorry, seems I piled onto someone else's thread by mistake. . . .


THANKS!!
--
Matthew "LAMMY" Lamoureux


Matthew "LAMMY" Lamoureux

unread,
Oct 8, 2013, 1:56:03 PM10/8/13
to xmpie...@googlegroups.com
Hi all,
    Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien.  it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work. 



THANKS!!
--
Matthew "LAMMY" Lamoureux



Walter Van waard (gmail)

unread,
Oct 8, 2013, 2:13:49 PM10/8/13
to xmpie...@googlegroups.com
hi ,

this is most likely a character conversion issue regarding different
character sets. Could you open the file in for example Ultra edit or
any editor that shows the character table used in the file..
for example..Ascii, ansi, iso8859 etc...

make sure the csv file is identical to the character table you are using.
Also a single left quotation mark is not a standard character in iso8859-1 latin set.

let me know which character set the file is in...


Met vriendelijke groet, 
Walter


==========================
Sent from a electronic device
developed in de first year of
the second decade of the 21e
century from a company called
Apple.
==========================

Op 8 okt. 2013 om 19:56 heeft "Matthew \"LAMMY\" Lamoureux" <la...@msudirectmail.com> het volgende geschreven:

Hi all,
    Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien.  it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work. 



THANKS!!
--
Matthew "LAMMY" Lamoureux



<Screen Shot 2013-10-08 at 1.24.50 PM.jpg>
MSU Logo FaceBook Twitter LinkedIn

109 Talcott Road, West Hartford CT, 06110
Phone 860.523.0670 • Fax 860.523.0675
www.msudirectmail.com

This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. Please notify the sender immediately and delete this communication and any copies.

--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at http://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/groups/opt_out.

Guillaume Besnier

unread,
Oct 8, 2013, 3:06:26 PM10/8/13
to xmpie...@googlegroups.com
What platform do you use (PC/Mac)?
I understand that XMPie strongly suggests that CSV are UTF-16 encoded on Mac.
See Technote #0054 available



Expéditeur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de réception : Mardi, Octobre 08, 2013 7:56PM
Destinataire : xmpie...@googlegroups.com <xmpie...@googlegroups.com>
Sujet : [xmpie-users] Apostrophe's being changed.

 
--

Matthew "LAMMY" Lamoureux

unread,
Oct 8, 2013, 4:06:47 PM10/8/13
to <xmpie-users@googlegroups.com>
Apple iMac. 
I'll have to look into that one. . .. 

Guillaume Besnier

unread,
Oct 8, 2013, 11:57:50 PM10/8/13
to xmpie...@googlegroups.com
My previous message was truncated:

See Technote #0054 available on 1to1.xmpie.com



Exp�diteur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de r�ception : Mardi, Octobre 08, 2013 10:06PM
Destinataire : <xmpie...@googlegroups.com> <xmpie...@googlegroups.com>
Sujet : Re: [xmpie-users] Apostrophe's being changed.

�

Apple iMac.�
I'll have to look into that one. . ..�


On Oct 8, 2013, at 3:06 PM, Guillaume Besnier wrote:

What platform do you use (PC/Mac)?
I understand that XMPie strongly suggests that CSV are UTF-16 encoded on Mac.
See Technote #0054 available



Exp�diteur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de r�ception : Mardi, Octobre 08, 2013 7:56PM

Destinataire : xmpie...@googlegroups.com <xmpie...@googlegroups.com>
Sujet : [xmpie-users] Apostrophe's being changed.

�

Hi all,
� � Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien. �it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work.�



THANKS!!
--
Matthew "LAMMY" Lamoureux



109 Talcott Road, West Hartford CT, 06110

This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. Please notify the sender immediately and delete this communication and any copies.

--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at http://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at http://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/groups/opt_out.

Matthew "LAMMY" Lamoureux

unread,
Oct 9, 2013, 8:41:15 AM10/9/13
to <xmpie-users@googlegroups.com>
Unfortunately I don't have a log in to that site :(


THANKS!!
--
Matthew "LAMMY" Lamoureux




On Oct 8, 2013, at 11:57 PM, Guillaume Besnier wrote:

My previous message was truncated:

See Technote #0054 available on 1to1.xmpie.com



Expéditeur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de réception : Mardi, Octobre 08, 2013 10:06PM

Destinataire : <xmpie...@googlegroups.com> <xmpie...@googlegroups.com>
Sujet : Re: [xmpie-users] Apostrophe's being changed.

 

Apple iMac. 
I'll have to look into that one. . .. 
On Oct 8, 2013, at 3:06 PM, Guillaume Besnier wrote:

What platform do you use (PC/Mac)?
I understand that XMPie strongly suggests that CSV are UTF-16 encoded on Mac.
See Technote #0054 available



Expéditeur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de réception : Mardi, Octobre 08, 2013 7:56PM

Destinataire : xmpie...@googlegroups.com <xmpie...@googlegroups.com>
Sujet : [xmpie-users] Apostrophe's being changed.

 

Hi all,
    Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien.  it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work. 



THANKS!!
--
Matthew "LAMMY" Lamoureux



109 Talcott Road, West Hartford CT, 06110

Guillaume Besnier

unread,
Oct 12, 2013, 6:42:21 AM10/12/13
to xmpie...@googlegroups.com
All XMPie customers are entitled to ask for a credential to this site.
It's a human-driven process, but should you ask today, you might have it as soon as on Sunday.



Exp�diteur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de r�ception : Mercredi, Octobre 09, 2013 2:41PM

Destinataire : <xmpie...@googlegroups.com> <xmpie...@googlegroups.com>
Sujet : Re: [xmpie-users] Apostrophe's being changed.

�

Unfortunately I don't have a log in to that site :(


THANKS!!
--
Matthew "LAMMY" Lamoureux




On Oct 8, 2013, at 11:57 PM, Guillaume Besnier wrote:

My previous message was truncated:

See Technote #0054 available on 1to1.xmpie.com



Exp�diteur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de r�ception : Mardi, Octobre 08, 2013 10:06PM

Destinataire : <xmpie...@googlegroups.com> <xmpie...@googlegroups.com>
Sujet : Re: [xmpie-users] Apostrophe's being changed.

�

Apple iMac.�
I'll have to look into that one. . ..�


On Oct 8, 2013, at 3:06 PM, Guillaume Besnier wrote:

What platform do you use (PC/Mac)?
I understand that XMPie strongly suggests that CSV are UTF-16 encoded on Mac.
See Technote #0054 available



Exp�diteur : Matthew \"LAMMY\" Lamoureux <la...@msudirectmail.com>
Date de r�ception : Mardi, Octobre 08, 2013 7:56PM

Destinataire : xmpie...@googlegroups.com <xmpie...@googlegroups.com>
Sujet : [xmpie-users] Apostrophe's being changed.

�

Hi all,
� � Hoping someone can help here. This is the desktop version of Ucreate. When a name has an apostophe in it, like O'Brien, it's getting converted to a carrot, O>Brien. �it's correct in the data. I've used CSV'd to apply quotes around the data. I've tried a different font. Nothing seems to work.�



THANKS!!
--
Matthew "LAMMY" Lamoureux



109 Talcott Road, West Hartford CT, 06110

shanna nitto

unread,
Jul 26, 2019, 4:03:46 PM7/26/19
to XMPie Interest Group
I am looking to do the same thing but with check boxes. 
I am using this as a product property for zip codes. The user can choose multiple zip codes and i need that information to write back to the order details in the back office. 

Any suggestions?
Thank you

hevelhouse

unread,
Jul 29, 2019, 10:38:06 AM7/29/19
to XMPie Interest Group
Reply all
Reply to author
Forward
0 new messages