Regular expression checkbox tick check


(Qz02) #1

Hi,




I've created a metadata checkbox and i'm now creating a conditional keyword. I was wondering if anyone knew the pattern for it to check whether the tick box was checked or not?





Thanks!


(Ashish Karelia) #2

Hi,
You can set up the conditional keyword as on the attachment where you will have to replace 'tickbox' with the field name of your metadata field and the pattern to match the value you have configured.



As you might be aware you will have to use conditional keywords on the bodycopy for this to work as well. My condition keyword name is 'condition_1' so my condition keyword looks like follows :

    
    %begin_condition_1%
    
    This is TRUE text
    
    %else_condition_1%
    
    This is FALSE text
    
    %end_condition_1% 


This keywords can be found in the keyword drop down list if you are using Wysiwig type Div. Hope this Help.
Any more questions or comments, fire them away.

Cheers,

Ash

(Ashish Karelia) #3

Actually There seems to be a bug with the pattern matching. Look at #5006 Conditional regex pattern not returning expected results for more details and outcome.


EDIT : Turns out it isn’s a but after all. I was using malformed regex.


(Qz02) #4

Thanks alot!


Much appreciated!!!!! :smiley: