Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantI have shared access to the screenshot - any news on this? do you have an enail address I can send the screenshot to if you didn't get access?
[email protected]
ParticipantActually - just figured it out - but have q question - this is an old form and I have had to alter some of the field names - will that affect the old posts that have already been filled out?
[email protected]
ParticipantDid you get my email with screenshots etc for this issue?
[email protected]
Participanthave checked the console and I se this error:
An invalid form control with name='fields[group_jw3su7wus4j][fields][radio_3gfaa8shuk][id]' is not focusable.
it seems to be the one giving the error on the page
[email protected]
Participantfront end submission shortcode: [mb_frontend_form id='garden-form' post_fields='title' post_type='green-care-site' redirect='http://sfgqualitymark.org.uk/user-dashboard/' submit_button='Save Your Form']
dashboard shortcode: [mb_frontend_dashboard edit_page="10" columns="date,status"]
hope this helps sort this
[email protected]
Participantthis all seems to be working now - but we have another issue in that the main form is duplicating posts instead of overwriting/editing the old post -
this is the shortcode for the form:
[mb_frontend_form id='garden-form' post_fields='title' post_type='green-care-site' redirect='http://sfgqualitymark.org.uk/user-dashboard/' submit_button='Save Your Form'][email protected]
Participantthank you for your patience that seems to have worked
[email protected]
Participantis that on both of them?
and do you mean like below - sorry not a coder!
add_filter( 'rwmb_frontend_post_title', function( $field ) {
if ( is_page( "Green Care Form" ) ) {
$field['required'] = true;
$field['name'] = 'Name of Green Care organisation';
}} );
return $field;
[email protected]
ParticipantI have done this and I think it's down to one of these bits of code - or both - you gave me this code so not sure but when I turn both off it seems to work - can we combine them maybe
they alter the label of the title field for both forms
<?php add_filter( 'rwmb_frontend_post_title', function( $field ) { if ( is_page( "Green Care Form" ) ) { $field['required'] = true; $field['name'] = 'Name of Green Care organisation'; return $field; } } ); ?> <?php add_filter( 'rwmb_frontend_post_title', function( $field ) { if ( is_page( "Green Care Sub Site Form" ) ) { $field['required'] = true; $field['name'] = 'Name of Green Care Sub Site'; } return $field; } ); ?>[email protected]
ParticipantThis is a live site - so can't really do that
but there is another form which works fine - is there a clash there?
[email protected]
ParticipantThanks that could work - but know have another issue
I have 2 forms on separate pages now and the title of the form needs changing - you gave me this code below
<div> add_filter( 'rwmb_frontend_post_title', function( $field ) {
if ( is_page( "Green Care Form" ) ) {
$field['required'] = true;
$field['name'] = 'Name of Green Care organisation';
return $field;
}
} ); </div>but the other form needs it's title adding/changing as well
I tried to add another code snippets with the following code:
<div>
add_filter( 'rwmb_frontend_post_title', function( $field ) {
if ( is_page( "Green Care Sub Site Form" ) ) {
$field['required'] = true;
$field['name'] = 'Name of Green Care Sub Site';
return $field;
}
} ); </div>but if I do this then the title on the first form disappears - How can I alter both form titles please
regards
PaulSeptember 28, 2022 at 11:44 PM in reply to: ✅show certain fields based on restrict content pro user roles #38466[email protected]
Participantthank you - I think that using the ad more metaboxes on the front end form might be all I need as I can show hide the different shortcodes using Oxygen conditions
thanks Long for your help in this
[email protected]
Participantany news on this - I want to be able to hide some fields based on a user role - or a membership level maybe -
[email protected]
ParticipantI think I have solved it 0 after the client changed the post type name the form still had the old post type in the shortcode - it seems to work now
they have had a few people fill the form in and save it - but it obviuosly saved as the old post type - how can I access this - is there a way to find it in the database
[email protected]
Participanthow do I send screenshots to you - can send an email?
-
AuthorPosts