Hi, Can anyone provide a little instruction on how to use the str_replace function mentioned in the documentation when customising the sign up form to manipulate the ['html'] element for an email field for example? Thanks Josh
You do not need to touch value attribute because it populated dynamically. I suggest to use CSS style to change view of form instead of alter html layout. here is guide for this function http://php.net/str_replace Here is one example of usage PHP: $frm['elements']['paysys_id']['htmle'] = str_replace('class="radio"', 'class="radio additional-class"', $frm['elements']['paysys_id']['htmle']);
That's perfect, thank you! The documentation also mentions on rare occasions needing to split the ['elements'] tag for example to seperate first name and last name fields. Do you happen to know how to achieve this? Thanks Josh
Please go to aMember admin interface aMember Cp -> Configuration -> Forms Editor (edit) click configure link on Name brick and enable option to display it in two rows.