Server IP : 172.67.216.182 / Your IP : 172.70.188.64 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/fields/button/ |
Upload File : |
<div class="caldera-config-group"> <label for="buttontype_{{_id}}"> <?php esc_html_e('Type', 'caldera-forms'); ?> </label> <div class="caldera-config-field"> <select id="buttontype_{{_id}}" class="block-input field-config field-button-type" name="{{_name}}[type]"> <option value="submit" {{#is type value="submit"}}selected="selected"{{/is}}> <?php esc_html_e('Submit', 'caldera-forms'); ?> </option> <option value="button" {{#is type value="button"}}selected="selected"{{/is}}> <?php esc_html_e('Button', 'caldera-forms'); ?> </option> <option value="next" {{#is type value="next"}}selected="selected"{{/is}}> <?php esc_html_e('Next Page', 'caldera-forms'); ?> </option> <option value="prev" {{#is type value="prev"}}selected="selected"{{/is}}> <?php esc_html_e('Previous Page', 'caldera-forms'); ?> </option> <option value="reset" {{#is type value="reset"}}selected="selected"{{/is}}> <?php esc_html_e('Reset', 'caldera-forms'); ?> </option> </select> </div> </div> <div class="caldera-config-group"> <label for="{{_id}}_label"> <?php esc_html_e('Class', 'caldera-forms'); ?> </label> <div class="caldera-config-field"> <input id="{{_id}}_label" type="text" class="block-input field-config" name="{{_name}}[class]" value="{{class}}" /> </div> </div> <div class="caldera-config-group"> <div class="caldera-config-field"> <label for="{{_id}}_label"> <input id="{{_id}}_label" type="checkbox" class="field-config" name="{{_name}}[label_space]" value="1" {{#if label_space}}checked="checked"{{/if}} /> <?php esc_html_e('Add Label Space', 'caldera-forms'); ?> </label> </div> </div> <div id="event{{_id}}" style="display:{{#is type value="button"}}block{{else}}none{{/is}};"> <div class="caldera-config-group"> <label for="{{_id}}_target"> <?php esc_html_e('Click Target', 'caldera-forms'); ?> </label> <div class="caldera-config-field"> <input id="{{_id}}_target" type="text" class="block-input field-config" name="{{_name}}[target]" value="{{target}}" /> <p class="description"><?php _e('Selector or callback function to push form values on click.', 'caldera-forms'); ?></p> </div> </div> </div> {{#script}} jQuery(function($){ $('#buttontype_{{_id}}').on('change', function(){ if( this.value === 'button' ){ $('#event{{_id}}').show(); }else{ $('#event{{_id}}').hide(); } }); }); {{/script}}