You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with forms / relationship pickers with SQL db , the numeric ids get encoded.
Often we need to grab an id from a form or a picker to pass to a custom query or filter, and we need the unencoded id.
this is not hard to do, with JS, but it so redundant that would be easier to have a helper funtion.
it would look like {{ decodeId Form.Relationship.0_id }}
you can curretnly decode it using
if ( val && val.length )
return val[0]._id.substring(3, val[0]._id.length - 3)
The text was updated successfully, but these errors were encountered:
When working with forms / relationship pickers with SQL db , the numeric ids get encoded.
Often we need to grab an id from a form or a picker to pass to a custom query or filter, and we need the unencoded id.
this is not hard to do, with JS, but it so redundant that would be easier to have a helper funtion.
it would look like
{{ decodeId Form.Relationship.0_id }}
you can curretnly decode it using
The text was updated successfully, but these errors were encountered: