Monday, October 10, 2011

Creating a button field that performs like a link field.

Is it possible to create a button field on my userform that acts like a link
field?
ANSWER:
<!-- Link field to google -->
 
          <Field name='testLink'>
            <Display class='Link'>
              <Property name='name' value='Google'/>
              <Property name='URL' value='http://www.google.com'/>
            </Display>
          </Field>
 

<!-- Corresponding button field -->

          <Field name='testLinkButton'>
            <Display class='Button'>
              <Property name='value' value='Google'/>
              <Property name='onClick' value='javascript:
location.href=&#039;http://www.google.com&#039;;return true;'/>
            </Display>
          </Field>

No comments:

Post a Comment