RSjoomla! - Quality Joomla! Components

My Account






Lost Password?
No account yet? Register

Newsletter Subscribe

If you would like to be one of the first people to hear about the release of our new components then make sure you have subscribed to our announcements list! We won't bug you with unnecessary stuff.




RSform! Logo User Guide
RSform! - Form management component » The most common issues and their fix

The most common issues and their fix 

In this chapter you are able to find the most common RSform issues and how to make them work

If validation is not ok, the email field is filled with garbage [Read All]

In some cases when the validation is not correct, the email field gets filled with garbage (something like <script>...). This is caused by the Email Cloaking mambot/plugin that joomla has enabled by default.

To fix it, go to Mambots / Plugins and unpublish the Email Cloaking plugin. 

What is the correct syntax that needs to be used in Checkboxes, Radiogroups and Selectboxes [Read All]

When creating a checkbox group, a radio group or a selectbox, you need to use a specific syntax inside the default value textbox.

Let's assume that you have a checkbox group and want to display 3 cities, Paris, London, Milan. Your syntax should be:

Paris|Paris,London|London,Milan|Milan

Why the duplicated words? That's because you can set the field to show something to the user, and return something else to you. For instance, if you want your checkbox group to return the country, but show the user the cities, you should use:

France|Paris,UK|London,Italy|Milan

This way, the user will see Paris, London and Milan, but you'll get France, UK, Italy in the backend, in the thank you message and in the emails.

You can also use the {checked} syntax to make some options selected by default:

Paris{checked}|Paris,London|London,Milan{checked}|Milan

This example will select by default Paris and Milan when the form is initially shown to the user. 

How do i display radio or checkboxes each on a row [Read All]

Radio Groups:
  1. Go to your Form Editor screen, and click on the form style
  2. Assuming that your radio field id is "test", add this code to the end of the Form Style code:

        <style>.radiotest{float:left;clear:both}</style>

Checkbox Groups:

  1. Go to your Form Editor screen, and click on the form style
  2. Assuming that your checkbox field id is "test", add this code to the end of the Form Style code:
        <style>.checktest{float:left;clear:both}</style>

 

How to create custom return urls [Read All]

Here's what you should do if you want to create customized links. Let's assume that in your form, you have a dropdown for the city(field id = "city"). The dropdown's default value should look similar to:

|Select a city,Paris|Paris,Rome|Rome,London|London. What you can do is to create 3 custom pages Paris.html, Rome.html and London.html.

Then, in the return URL field, type http://www.yourwebsite.com/{city}.html The {city} placeholder will be replaced with Paris, Rome or London and the form will be redirected to http://www.yourwebsite.com/Paris.html, http://www.yourwebsite.com/London.html or http://www.yourwebsite.com/Rome.html

The Return URL field is optional. If you leave it empty, the form will show the "Thank you message" (if any), and then it will return to it's own screen.

Changing the date format [Read All]

Changing the stored date format 

A common issue is changing the date format. Here's a custom script that you should use on the Scripts called on form process: in order to save the date in your preferred format. Replace "yourcalid" with your calendar field id:

if(isset($processform['yourcalid'])){
    $date = explode('/',$processform['yourcalid']);
    $processform['yourcalid'] = date('d/m/Y',strtotime($date[2].'-'.$date[0].'-'.$date[1]));
}
 
in the date('d/m/Y',...) expression, you could use a different format. Please refer to http://www.php.net/date to see all the recognized date characters.
 
Changing the calendar language 
 
To change the calendar labels, you have to edit the file /components/com_forme/calendar
/calendar.js, and around line 900, change the code

MONTHS_SHORT : {key:"months_short", value:["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]},
    MONTHS_LONG: {key:"months_long", value:["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]},
    WEEKDAYS_1CHAR: {key:"weekdays_1char", value:["S", "M", "T", "W", "T", "F", "S"]},
    WEEKDAYS_SHORT: {key:"weekdays_short", value:["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"]},
    WEEKDAYS_MEDIUM: {key:"weekdays_medium", value:["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},
    WEEKDAYS_LONG: {key:"weekdays_long", value:["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]},
 

 

Add a link to files uploaded by users in your form [Read All]

If you want to directly check what users have uploaded in your form, you could add a direct link in your e-mail text, to point to the uploaded files.

Edit your form, go to the Emails tab, and in the Email text type:

http://www.your website here.com/components/com_forme/uploads/{file1}

(Assuming that you have created a file upload field, and it's field id is: file1)