GithubHelp home page GithubHelp logo

Comments (7)

brockpetrie avatar brockpetrie commented on July 22, 2024

Good catch. PHP likes to treat the number zero as representing an empty value. This will fix it:

Edit line 370 of fields/field.dynamictextgroup.php that says
if (!empty($field[$i])) {

Change it to:
if (!empty($field[$i]) || $field[$i] == '0') {

I'll add this fix in the next commit. Feel free to close this when you can confirm the fix works. Thanks!

from dynamictextgroup.

andrewminton avatar andrewminton commented on July 22, 2024

Hey Brock,

Tried that but still get error.. something to do with required field checkbox I'm thinking. See my screen shot. http://dl.dropbox.com/u/670078/Screen%20shot%202011-09-30%20at%2009.42.50.png

I have the numeric field with a required checkbox. I'm using latest branch.

from dynamictextgroup.

brockpetrie avatar brockpetrie commented on July 22, 2024

It looks like you aren't using the latest dev version.

Version 2.0dev6 fixes the following issue...
Fixed validation pattern presets (backslashes weren't being escaped)

You can read me and Nils' discussion about this here; I'm pretty sure this is what's causing your problem.

That version also adds checkbox and radio button subfield types, so you'll be able to use those rather than doing the text input workaround you're using.

from dynamictextgroup.

andrewminton avatar andrewminton commented on July 22, 2024

Noted. Will update. 2.0dev5 in local install. Doh! (Slaphead)

from dynamictextgroup.

brockpetrie avatar brockpetrie commented on July 22, 2024

Haha no problem

from dynamictextgroup.

andrewminton avatar andrewminton commented on July 22, 2024

Will pull your branch locally and test while at the Symposium day2 tomorrow. A lot of singing praises for the work youce done here by the way. double kudos

from dynamictextgroup.

brockpetrie avatar brockpetrie commented on July 22, 2024

Wow... Thanks a lot, manβ€” I really appreciate that! So great to hear; very, very, inspiring! To be honest, I was a bit worried that nobody would use this thing...

I wish I was there!!

from dynamictextgroup.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.