Page History
...
A rule can dynamically display an image uploaded to your form via the upload control. In this example the upload control is named 'u'. The form also must contain a message control as a place holder for displaying the uploaded image. The rule dynamically creates a URL to the uploaded image in the
Frevvoproduct |
---|
Code Block | ||
---|---|---|
| ||
if (u.value.length > 0) { var baseUrl = _data.getParameter('_frevvo_base_url') + ""/frevvo/web/tn/" + _data.getParameter('tn.id') + "/user/"+_data.getParameter('user.id') + "/app/"+_data.getParameter('app.id') + "/form/"+_data.getParameter('form.id'); im.value = "'<img src="'" + baseUrl + "'/attachment/"' + u.value+"'/does_not_matter'"/>"'; } |
Here is the example form before and after the user has upload the orangegrovefrevvo.logo,orange.png image:
Section | ||||
---|---|---|---|---|
|
...
Overview
Content Tools