Text Field Code Error
-
Hello and thank you for the plugin. I was trying to use this code from one of your posts for an extra field but I got an error message. Here’s the code I used but of course I changed the title, placeholder, and text:
add_action( 'give_fields_after_donation_amount', function( $group ) { $group->append( give_field( 'text', 'mothersName' ) ->showInReceipt() ->minLength(2) ->label( __( 'Mother\'s Name' ) ->maxLength(30) ->placeholder('Mother\'s name') ->required() // Could instead be marked as readOnly() (optional) ->helpText( __( 'This is a field used to add your mother\'s name' ) ) //how this is displayed is up to the template, but if the template has help text displayed, this is how to set it. ); });
I got this error in my functions.php:
Exception thrown without a stack frame
I will appreciate your help.
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘Text Field Code Error’ is closed to new replies.