mazmataz75
I'm trying to set up a new user registration page that people can use to create a new user. Most of the time, logged-in users of a particular role will be creating new user profiles for other people, so I set up a view that uses if statements to decide whether or not the user viewing the page is the correct role to create a new user, with the form shortcode embedded in the view, which is embedded in a page. But then when I try to set the user registration page to that page it says the page doesn't contain a registration form, so I can't use it!
Hi everyone, I'm trying to write a bit of custom code that takes the values from a repeating section when an entry is updated in form A and copy it to an equivalent repeating section in a specific entry in form B. This is what I've got so far: add_action('frm_after_update_entry', 'additional_sups', 10, 2); function additional_sups ( $entry_id, $form_id ) { if ( $form_id == 97 ) { // Form A $pref = FrmField::getOne( 2434 ); $pref_value = FrmProEntryMetaHelper::get_post_or_meta_value( $entry_id, $pref, $args ); $pref_b = FrmField::getOne( 1438 ); $project_entry_ids = FrmProEntryMeta::get_entry_ids_for_field_and_value( $pref_b, $pref_value ); $repeating_values = array('form' => "", 'row_ids' => array()); foreach( $_POST['item_meta'][2415] as $k => $r ) { if ( $k === 'form' ) { $repeating_values[ $k ] = "96"; } else if ( $k === 'row_ids' ) { $repeating_values['row_ids'] = $r; } else if ( is_array( $r ) ) { foreach ( $r as $i => $v ) { if ( $i == 2423 ) { $repeating_values[ $k ][2394] = $v; } else if ( $i == 2425 ) { $repeating_values[ $k ][2395] = $v; } else if ( $i == 3131 ) { $repeating_values[ $k ][2396] = $v; } else if ( $i == 3132 ) { […]
I'd like to change the background colour of particular sections on my form to help make it clearer. I've tried doing this by adding custom CSS for #frm_form_25_container but this doesn't seem to do anything, and I can't find anything specific about this in the documentation.
I am trying to create a form that allows users to update their entry, but before these updates are added to the website, they go through a round of administrator approval first. So rather than actually editing the entries directly, I've set it up so that users are sent to a separate form (form B), which copies the old values from their original entry (on form A), stores them and allows the user to enter new values. I then want administrators to see a view on the website that offers update links for each of the fields that have been edited (the update link would copy the 'new' values from form B to their corresponding fields on form A, thereby editing the entry). So I started with this shortcode: [frm-entry-update-field id=[id] field_id=141 value="[2403]" label="Publish new title" message="Updated"] The problem is, the update link shortcode only shows up if all the fields specified are in the form that the view is showing entries for. So that shortcode doesn't work. So then I instead created nested views - so I have a view in form A, which shows the following: [frm-entry-update-field id=[id] field_id=141 value=[display-frm-data id=18523 filter=limited] label="Publish new title" message="Updated"] The second view […]