Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wix getting user input

Tags:

user-input

wix

Dialog.wxs

<UI>
<Dialog Id="UserRegistrationDlg" ... >
<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220" Height="18" Property="NameValue" Text="{80}" />
</Dialog>
<UI>

In Product.wxs I created a property

<Property Id="NameValueProperty" Value="NameValue" />

Then, as I understood, I have to use [NameValueProperty] for getting value but id doesn't work ... What's wrong?

like image 820
johnny Avatar asked Feb 14 '11 20:02

johnny


People also ask

Does Wix have fillable Forms?

Wix is a popular website builder that allows users to create beautiful websites with ease. One of the great features of Wix is that it offers fillable forms, which makes it easy to gather information from visitors.

How does Wix collect information?

Click Visitor Data. Click Data Request. Click + New Request. Click the dropdown and select Get a copy of their data.


2 Answers

A verbose log file should show you the changes to the properties. Very useful when tracking down these sort of things. In this case, your example code is actually setting a Property called NameValue to the value in the edit box. If you want to default the value in the edit box then you would do something like:

<Property Id="NameValue" Value="Show this in the edit box" />

And to reference the value you'd use [NameValue]. Alternatively, you could change your code to be:

<UI>
  <Dialog Id="UserRegistrationDlg" ... >
    <Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220"
             Height="18" Property="NameValueProperty" Text="{80}" />
  <Dialog>
<UI>
like image 196
Rob Mensching Avatar answered Oct 05 '22 00:10

Rob Mensching


You generally want to use a Secure Custom Property in this situation. This is a property that is both Public (i.e. CAPS ) and marked as Secure A value is only required if you want there to be a default value.

<Property Id="MYPROPERTY" Secure="yes" />
like image 45
Christopher Painter Avatar answered Oct 05 '22 00:10

Christopher Painter